From ee153f64d459406f429a8951e95ec0d50fa66956 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 27 Nov 2015 13:32:20 +0100 Subject: add spinner to events --- view/css/mod_events.css | 5 +++++ view/tpl/event_head.tpl | 4 ++++ view/tpl/events-js.tpl | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'view') diff --git a/view/css/mod_events.css b/view/css/mod_events.css index 5e0fc2bce..9644a5593 100644 --- a/view/css/mod_events.css +++ b/view/css/mod_events.css @@ -4,6 +4,11 @@ margin-bottom: -1px; } +#events-spinner .spinner { + margin-top: 9px; + margin-bottom: -9px; +} + .bootstrap-tagsinput { width: 100%; padding: 6px 12px; diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index 6a38057fd..745cdc0e6 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -55,7 +55,11 @@ showEvent(calEvent.id); }, loading: function(isLoading, view) { + $('#events-spinner').spin('tiny'); + $('#events-spinner > i').css('color', 'transparent'); if(!isLoading) { + $('#events-spinner').spin(false); + $('#events-spinner > i').css('color', 'unset'); $('td.fc-day').dblclick(function() { openMenu('form'); //window.location.href='/events/new?start='+$(this).data('date'); diff --git a/view/tpl/events-js.tpl b/view/tpl/events-js.tpl index b2de90da1..2b6170ff4 100755 --- a/view/tpl/events-js.tpl +++ b/view/tpl/events-js.tpl @@ -1,12 +1,13 @@
+
- +
-- cgit v1.2.3