forked from pdrakeweb/Drupal-FullCalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fullcalendar-loading-1057514-2-d6.patch
59 lines (56 loc) · 2.49 KB
/
fullcalendar-loading-1057514-2-d6.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
diff --git a/fullcalendar.custom.css b/fullcalendar.custom.css
index 565f56c..7f5d342 100644
--- a/fullcalendar.custom.css
+++ b/fullcalendar.custom.css
@@ -55,3 +55,9 @@ table.fc-header {
.fc-header .ui-state-default {
margin-bottom: 0;
}
+
+/* Add throbber when working */
+h2.fc-ajaxing {
+ padding-right: 18px !important;
+ background: url(images/throbber.gif) right -18px no-repeat;
+}
diff --git a/fullcalendar.views.js b/fullcalendar.views.js
index c305e9f..4794129 100644
--- a/fullcalendar.views.js
+++ b/fullcalendar.views.js
@@ -78,6 +78,10 @@ Drupal.behaviors.fullCalendar = function(context) {
'field=' + event.field + '&index=' + event.index + '&day_delta=' + dayDelta + '&minute_delta=' + minuteDelta,
fullcalendarUpdate);
return false;
+ },
+ loading: function( isLoading, view ) {
+ // Show thobber while working.
+ $(this).find('h2.fc-header-title').toggleClass( 'fc-ajaxing', isLoading );
}
});
diff --git a/images/throbber.gif b/images/throbber.gif
new file mode 100644
index 0000000000000000000000000000000000000000..4352e64e859bb5e4d2e438f00d9d34c1d27462d1
GIT binary patch
literal 1336
zcmZ?wbhEHb<Y&-eIKlt|9L0Nis`pA%ACqZ0W;)@N+njSzi!NucztO$_;nuBN7o2;(
z_1gQrKydH<v17;1ojZ5!+O>Q4?wxw{`P%dE_uhYh4g^5*`~UYq@csXH5cvQ7KL`K~
zSNzZI=Nc01>=@u`q-Vg)2on0q!pa7ub%2-w<O~MZV+smPGeshAuV9j1vPXZ)s_4Zg
z0blm?F5lHJc~VR=HP7i{py6bVF6{&7l)5xj0vkl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