fullcalendar-bootstrap-rails 2.3.1.0 → 2.3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fullcalendar/bootstrap/rails/version.rb +1 -1
- data/vendor/assets/javascripts/fullcalendar.js +209 -176
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a5e75b6d752de15a27f2d5d88d6d5267c40728a
|
4
|
+
data.tar.gz: 8df7cd6a3ce8859f25b6100b86c58ac00923f5ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22b4a997e9acddf441a25180dde1591eb03efd0ea030ccb522e87e93199dd7a5eef79f2c04d2ac3d73a6097191efe3b3de1f451649d77b50f08e67ff3152d204
|
7
|
+
data.tar.gz: 4e7a9a210a40ccf62eb5be05229bec9c1f2b98f7efbef6dccef3c2dec655647dc51810f7c701bbfaf7406cb6dfa43b5e524ebb9527d317e2ab01a44b628fc5ea
|
@@ -50,7 +50,7 @@ $.fn.fullCalendar = function(options) {
|
|
50
50
|
calendar.render();
|
51
51
|
}
|
52
52
|
});
|
53
|
-
|
53
|
+
|
54
54
|
return res;
|
55
55
|
};
|
56
56
|
|
@@ -209,7 +209,7 @@ function enableCursor() {
|
|
209
209
|
|
210
210
|
// Given a total available height to fill, have `els` (essentially child rows) expand to accomodate.
|
211
211
|
// By default, all elements that are shorter than the recommended height are expanded uniformly, not considering
|
212
|
-
// any other els that are already too tall. if `shouldRedistribute` is on, it considers these tall rows and
|
212
|
+
// any other els that are already too tall. if `shouldRedistribute` is on, it considers these tall rows and
|
213
213
|
// reduces the available height.
|
214
214
|
function distributeHeight(els, availableHeight, shouldRedistribute) {
|
215
215
|
|
@@ -5055,7 +5055,7 @@ DayGrid.mixin({
|
|
5055
5055
|
'<span class="fc-title">' +
|
5056
5056
|
(htmlEscape(event.title || '') || ' ') + // we always want one line of height
|
5057
5057
|
'</span>';
|
5058
|
-
|
5058
|
+
|
5059
5059
|
return '<a class="' + classes.join(' ') + '"' +
|
5060
5060
|
(event.url ?
|
5061
5061
|
' href="' + htmlEscape(event.url) + '"' :
|
@@ -5184,7 +5184,7 @@ DayGrid.mixin({
|
|
5184
5184
|
// Give preference to elements with certain criteria, so they have
|
5185
5185
|
// a chance to be closer to the top.
|
5186
5186
|
segs.sort(compareSegs);
|
5187
|
-
|
5187
|
+
|
5188
5188
|
for (i = 0; i < segs.length; i++) {
|
5189
5189
|
seg = segs[i];
|
5190
5190
|
|
@@ -7659,7 +7659,7 @@ function Calendar_constructor(element, overrides) {
|
|
7659
7659
|
t.initOptions(overrides || {});
|
7660
7660
|
var options = this.options;
|
7661
7661
|
|
7662
|
-
|
7662
|
+
|
7663
7663
|
// Exports
|
7664
7664
|
// -----------------------------------------------------------------------------------
|
7665
7665
|
|
@@ -7832,7 +7832,7 @@ function Calendar_constructor(element, overrides) {
|
|
7832
7832
|
};
|
7833
7833
|
|
7834
7834
|
|
7835
|
-
|
7835
|
+
|
7836
7836
|
// Imports
|
7837
7837
|
// -----------------------------------------------------------------------------------
|
7838
7838
|
|
@@ -7859,9 +7859,9 @@ function Calendar_constructor(element, overrides) {
|
|
7859
7859
|
var ignoreWindowResize = 0;
|
7860
7860
|
var date;
|
7861
7861
|
var events = [];
|
7862
|
-
|
7863
|
-
|
7864
|
-
|
7862
|
+
|
7863
|
+
|
7864
|
+
|
7865
7865
|
// Main Rendering
|
7866
7866
|
// -----------------------------------------------------------------------------------
|
7867
7867
|
|
@@ -7872,8 +7872,8 @@ function Calendar_constructor(element, overrides) {
|
|
7872
7872
|
else {
|
7873
7873
|
date = t.getNow();
|
7874
7874
|
}
|
7875
|
-
|
7876
|
-
|
7875
|
+
|
7876
|
+
|
7877
7877
|
function render() {
|
7878
7878
|
if (!content) {
|
7879
7879
|
initialRender();
|
@@ -7884,8 +7884,8 @@ function Calendar_constructor(element, overrides) {
|
|
7884
7884
|
renderView();
|
7885
7885
|
}
|
7886
7886
|
}
|
7887
|
-
|
7888
|
-
|
7887
|
+
|
7888
|
+
|
7889
7889
|
function initialRender() {
|
7890
7890
|
tm = options.theme ? 'ui' : 'fc';
|
7891
7891
|
element.addClass('fc');
|
@@ -7919,8 +7919,8 @@ function Calendar_constructor(element, overrides) {
|
|
7919
7919
|
$(window).resize(windowResizeProxy);
|
7920
7920
|
}
|
7921
7921
|
}
|
7922
|
-
|
7923
|
-
|
7922
|
+
|
7923
|
+
|
7924
7924
|
function destroy() {
|
7925
7925
|
|
7926
7926
|
if (currentView) {
|
@@ -7938,13 +7938,13 @@ function Calendar_constructor(element, overrides) {
|
|
7938
7938
|
$(window).unbind('resize', windowResizeProxy);
|
7939
7939
|
}
|
7940
7940
|
}
|
7941
|
-
|
7942
|
-
|
7941
|
+
|
7942
|
+
|
7943
7943
|
function elementVisible() {
|
7944
7944
|
return element.is(':visible');
|
7945
7945
|
}
|
7946
|
-
|
7947
|
-
|
7946
|
+
|
7947
|
+
|
7948
7948
|
|
7949
7949
|
// View Rendering
|
7950
7950
|
// -----------------------------------------------------------------------------------
|
@@ -8004,7 +8004,7 @@ function Calendar_constructor(element, overrides) {
|
|
8004
8004
|
ignoreWindowResize--;
|
8005
8005
|
}
|
8006
8006
|
|
8007
|
-
|
8007
|
+
|
8008
8008
|
|
8009
8009
|
// Resizing
|
8010
8010
|
// -----------------------------------------------------------------------------------
|
@@ -8021,8 +8021,8 @@ function Calendar_constructor(element, overrides) {
|
|
8021
8021
|
t.isHeightAuto = function() {
|
8022
8022
|
return options.contentHeight === 'auto' || options.height === 'auto';
|
8023
8023
|
};
|
8024
|
-
|
8025
|
-
|
8024
|
+
|
8025
|
+
|
8026
8026
|
function updateSize(shouldRecalc) {
|
8027
8027
|
if (elementVisible()) {
|
8028
8028
|
|
@@ -8044,8 +8044,8 @@ function Calendar_constructor(element, overrides) {
|
|
8044
8044
|
_calcSize();
|
8045
8045
|
}
|
8046
8046
|
}
|
8047
|
-
|
8048
|
-
|
8047
|
+
|
8048
|
+
|
8049
8049
|
function _calcSize() { // assumes elementVisible
|
8050
8050
|
if (typeof options.contentHeight === 'number') { // exists and not 'auto'
|
8051
8051
|
suggestedViewHeight = options.contentHeight;
|
@@ -8057,8 +8057,8 @@ function Calendar_constructor(element, overrides) {
|
|
8057
8057
|
suggestedViewHeight = Math.round(content.width() / Math.max(options.aspectRatio, .5));
|
8058
8058
|
}
|
8059
8059
|
}
|
8060
|
-
|
8061
|
-
|
8060
|
+
|
8061
|
+
|
8062
8062
|
function windowResize(ev) {
|
8063
8063
|
if (
|
8064
8064
|
!ignoreWindowResize &&
|
@@ -8070,9 +8070,9 @@ function Calendar_constructor(element, overrides) {
|
|
8070
8070
|
}
|
8071
8071
|
}
|
8072
8072
|
}
|
8073
|
-
|
8074
|
-
|
8075
|
-
|
8073
|
+
|
8074
|
+
|
8075
|
+
|
8076
8076
|
/* Event Fetching/Rendering
|
8077
8077
|
-----------------------------------------------------------------------------*/
|
8078
8078
|
// TODO: going forward, most of this stuff should be directly handled by the view
|
@@ -8098,7 +8098,7 @@ function Calendar_constructor(element, overrides) {
|
|
8098
8098
|
currentView.clearEvents();
|
8099
8099
|
unfreezeContentHeight();
|
8100
8100
|
}
|
8101
|
-
|
8101
|
+
|
8102
8102
|
|
8103
8103
|
function getAndRenderEvents() {
|
8104
8104
|
if (!options.lazyFetching || isFetchNeeded(currentView.start, currentView.end)) {
|
@@ -8116,7 +8116,7 @@ function Calendar_constructor(element, overrides) {
|
|
8116
8116
|
// ... which will call renderEvents
|
8117
8117
|
}
|
8118
8118
|
|
8119
|
-
|
8119
|
+
|
8120
8120
|
// called when event data arrives
|
8121
8121
|
function reportEvents(_events) {
|
8122
8122
|
events = _events;
|
@@ -8149,12 +8149,12 @@ function Calendar_constructor(element, overrides) {
|
|
8149
8149
|
header.enableButton('today');
|
8150
8150
|
}
|
8151
8151
|
}
|
8152
|
-
|
8152
|
+
|
8153
8153
|
|
8154
8154
|
|
8155
8155
|
/* Selection
|
8156
8156
|
-----------------------------------------------------------------------------*/
|
8157
|
-
|
8157
|
+
|
8158
8158
|
|
8159
8159
|
function select(start, end) {
|
8160
8160
|
|
@@ -8171,56 +8171,56 @@ function Calendar_constructor(element, overrides) {
|
|
8171
8171
|
|
8172
8172
|
currentView.select({ start: start, end: end }); // accepts a range
|
8173
8173
|
}
|
8174
|
-
|
8174
|
+
|
8175
8175
|
|
8176
8176
|
function unselect() { // safe to be called before renderView
|
8177
8177
|
if (currentView) {
|
8178
8178
|
currentView.unselect();
|
8179
8179
|
}
|
8180
8180
|
}
|
8181
|
-
|
8182
|
-
|
8183
|
-
|
8181
|
+
|
8182
|
+
|
8183
|
+
|
8184
8184
|
/* Date
|
8185
8185
|
-----------------------------------------------------------------------------*/
|
8186
|
-
|
8187
|
-
|
8186
|
+
|
8187
|
+
|
8188
8188
|
function prev() {
|
8189
8189
|
date = currentView.computePrevDate(date);
|
8190
8190
|
renderView();
|
8191
8191
|
}
|
8192
|
-
|
8193
|
-
|
8192
|
+
|
8193
|
+
|
8194
8194
|
function next() {
|
8195
8195
|
date = currentView.computeNextDate(date);
|
8196
8196
|
renderView();
|
8197
8197
|
}
|
8198
|
-
|
8199
|
-
|
8198
|
+
|
8199
|
+
|
8200
8200
|
function prevYear() {
|
8201
8201
|
date.add(-1, 'years');
|
8202
8202
|
renderView();
|
8203
8203
|
}
|
8204
|
-
|
8205
|
-
|
8204
|
+
|
8205
|
+
|
8206
8206
|
function nextYear() {
|
8207
8207
|
date.add(1, 'years');
|
8208
8208
|
renderView();
|
8209
8209
|
}
|
8210
|
-
|
8211
|
-
|
8210
|
+
|
8211
|
+
|
8212
8212
|
function today() {
|
8213
8213
|
date = t.getNow();
|
8214
8214
|
renderView();
|
8215
8215
|
}
|
8216
|
-
|
8217
|
-
|
8216
|
+
|
8217
|
+
|
8218
8218
|
function gotoDate(dateInput) {
|
8219
8219
|
date = t.moment(dateInput);
|
8220
8220
|
renderView();
|
8221
8221
|
}
|
8222
|
-
|
8223
|
-
|
8222
|
+
|
8223
|
+
|
8224
8224
|
function incrementDate(delta) {
|
8225
8225
|
date.add(moment.duration(delta));
|
8226
8226
|
renderView();
|
@@ -8238,8 +8238,8 @@ function Calendar_constructor(element, overrides) {
|
|
8238
8238
|
date = newDate;
|
8239
8239
|
renderView(spec ? spec.type : null);
|
8240
8240
|
}
|
8241
|
-
|
8242
|
-
|
8241
|
+
|
8242
|
+
|
8243
8243
|
function getDate() {
|
8244
8244
|
return date.clone();
|
8245
8245
|
}
|
@@ -8267,23 +8267,23 @@ function Calendar_constructor(element, overrides) {
|
|
8267
8267
|
overflow: ''
|
8268
8268
|
});
|
8269
8269
|
}
|
8270
|
-
|
8271
|
-
|
8272
|
-
|
8270
|
+
|
8271
|
+
|
8272
|
+
|
8273
8273
|
/* Misc
|
8274
8274
|
-----------------------------------------------------------------------------*/
|
8275
|
-
|
8275
|
+
|
8276
8276
|
|
8277
8277
|
function getCalendar() {
|
8278
8278
|
return t;
|
8279
8279
|
}
|
8280
8280
|
|
8281
|
-
|
8281
|
+
|
8282
8282
|
function getView() {
|
8283
8283
|
return currentView;
|
8284
8284
|
}
|
8285
|
-
|
8286
|
-
|
8285
|
+
|
8286
|
+
|
8287
8287
|
function option(name, value) {
|
8288
8288
|
if (value === undefined) {
|
8289
8289
|
return options[name];
|
@@ -8293,8 +8293,8 @@ function Calendar_constructor(element, overrides) {
|
|
8293
8293
|
updateSize(true); // true = allow recalculation of height
|
8294
8294
|
}
|
8295
8295
|
}
|
8296
|
-
|
8297
|
-
|
8296
|
+
|
8297
|
+
|
8298
8298
|
function trigger(name, thisObj) {
|
8299
8299
|
if (options[name]) {
|
8300
8300
|
return options[name].apply(
|
@@ -8331,9 +8331,9 @@ Calendar.defaults = {
|
|
8331
8331
|
|
8332
8332
|
weekNumberTitle: 'W',
|
8333
8333
|
weekNumberCalculation: 'local',
|
8334
|
-
|
8334
|
+
|
8335
8335
|
//editable: false,
|
8336
|
-
|
8336
|
+
|
8337
8337
|
// event ajax
|
8338
8338
|
lazyFetching: true,
|
8339
8339
|
startParam: 'start',
|
@@ -8364,7 +8364,7 @@ Calendar.defaults = {
|
|
8364
8364
|
prevYear: 'left-double-arrow',
|
8365
8365
|
nextYear: 'right-double-arrow'
|
8366
8366
|
},
|
8367
|
-
|
8367
|
+
|
8368
8368
|
// jquery-ui theming
|
8369
8369
|
theme: false,
|
8370
8370
|
themeButtonIcons: {
|
@@ -8378,20 +8378,20 @@ Calendar.defaults = {
|
|
8378
8378
|
dragOpacity: .75,
|
8379
8379
|
dragRevertDuration: 500,
|
8380
8380
|
dragScroll: true,
|
8381
|
-
|
8381
|
+
|
8382
8382
|
//selectable: false,
|
8383
8383
|
unselectAuto: true,
|
8384
|
-
|
8384
|
+
|
8385
8385
|
dropAccept: '*',
|
8386
8386
|
|
8387
8387
|
eventLimit: false,
|
8388
8388
|
eventLimitText: 'more',
|
8389
8389
|
eventLimitClick: 'popover',
|
8390
8390
|
dayPopoverFormat: 'LL',
|
8391
|
-
|
8391
|
+
|
8392
8392
|
handleWindowResize: true,
|
8393
8393
|
windowResizeDelay: 200 // milliseconds before an updateSize happens
|
8394
|
-
|
8394
|
+
|
8395
8395
|
};
|
8396
8396
|
|
8397
8397
|
|
@@ -8628,7 +8628,7 @@ fc.lang('en', Calendar.englishDefaults);
|
|
8628
8628
|
|
8629
8629
|
function Header(calendar, options) {
|
8630
8630
|
var t = this;
|
8631
|
-
|
8631
|
+
|
8632
8632
|
// exports
|
8633
8633
|
t.render = render;
|
8634
8634
|
t.destroy = destroy;
|
@@ -8638,7 +8638,7 @@ function Header(calendar, options) {
|
|
8638
8638
|
t.disableButton = disableButton;
|
8639
8639
|
t.enableButton = enableButton;
|
8640
8640
|
t.getViewsWithButtons = getViewsWithButtons;
|
8641
|
-
|
8641
|
+
|
8642
8642
|
// locals
|
8643
8643
|
var el = $();
|
8644
8644
|
var viewsWithButtons = [];
|
@@ -8660,15 +8660,21 @@ function Header(calendar, options) {
|
|
8660
8660
|
return el;
|
8661
8661
|
}
|
8662
8662
|
}
|
8663
|
-
|
8664
|
-
|
8663
|
+
|
8664
|
+
|
8665
8665
|
function destroy() {
|
8666
8666
|
el.remove();
|
8667
8667
|
}
|
8668
|
-
|
8669
|
-
|
8668
|
+
|
8669
|
+
|
8670
8670
|
function renderSection(position) {
|
8671
|
-
var
|
8671
|
+
var positioningClass;
|
8672
|
+
if('center' == position) {
|
8673
|
+
positioningClass = 'fc-' + position;
|
8674
|
+
} else {
|
8675
|
+
positioningClass = 'pull-' + position;
|
8676
|
+
}
|
8677
|
+
var sectionEl = $('<div class="' + positioningClass + '"/>');
|
8672
8678
|
var buttonStr = options.header[position];
|
8673
8679
|
|
8674
8680
|
if (buttonStr) {
|
@@ -8731,8 +8737,10 @@ function Header(calendar, options) {
|
|
8731
8737
|
|
8732
8738
|
classes = [
|
8733
8739
|
'fc-' + buttonName + '-button',
|
8734
|
-
tm + '-button',
|
8735
|
-
tm + '-state-default'
|
8740
|
+
// tm + '-button',
|
8741
|
+
// tm + '-state-default'
|
8742
|
+
'btn',
|
8743
|
+
'btn-default'
|
8736
8744
|
];
|
8737
8745
|
|
8738
8746
|
button = $( // type="button" so that it doesn't submit a form
|
@@ -8745,61 +8753,72 @@ function Header(calendar, options) {
|
|
8745
8753
|
if (!button.hasClass(tm + '-state-disabled')) {
|
8746
8754
|
|
8747
8755
|
buttonClick();
|
8748
|
-
|
8749
|
-
|
8750
|
-
|
8751
|
-
|
8752
|
-
|
8753
|
-
|
8754
|
-
|
8755
|
-
|
8756
|
-
|
8756
|
+
//
|
8757
|
+
// Bootstrap hadles disabled buttons gracefully enough.
|
8758
|
+
//
|
8759
|
+
// // after the click action, if the button becomes the "active" tab, or disabled,
|
8760
|
+
// // it should never have a hover class, so remove it now.
|
8761
|
+
// if (
|
8762
|
+
// button.hasClass(tm + '-state-active') ||
|
8763
|
+
// button.hasClass(tm + '-state-disabled')
|
8764
|
+
// ) {
|
8765
|
+
// button.removeClass(tm + '-state-hover');
|
8766
|
+
// }
|
8757
8767
|
}
|
8758
|
-
})
|
8759
|
-
|
8760
|
-
|
8761
|
-
|
8762
|
-
|
8763
|
-
|
8764
|
-
|
8765
|
-
|
8766
|
-
|
8767
|
-
.
|
8768
|
-
|
8769
|
-
|
8770
|
-
|
8771
|
-
|
8772
|
-
|
8773
|
-
|
8774
|
-
|
8775
|
-
|
8776
|
-
|
8777
|
-
|
8778
|
-
|
8779
|
-
|
8780
|
-
|
8781
|
-
|
8782
|
-
|
8783
|
-
|
8784
|
-
|
8785
|
-
|
8786
|
-
)
|
8768
|
+
});
|
8769
|
+
//
|
8770
|
+
// Bootstrap hadles the *down* effect gracefully enough.
|
8771
|
+
//
|
8772
|
+
// .mousedown(function() {
|
8773
|
+
// // the *down* effect (mouse pressed in).
|
8774
|
+
// // only on buttons that are not the "active" tab, or disabled
|
8775
|
+
// button
|
8776
|
+
// .not('.' + tm + '-state-active')
|
8777
|
+
// .not('.' + tm + '-state-disabled')
|
8778
|
+
// .addClass(tm + '-state-down');
|
8779
|
+
// })
|
8780
|
+
// .mouseup(function() {
|
8781
|
+
// // undo the *down* effect
|
8782
|
+
// button.removeClass(tm + '-state-down');
|
8783
|
+
// })
|
8784
|
+
//
|
8785
|
+
// Bootstrap hadles the *hover* effect gracefully enough.
|
8786
|
+
//
|
8787
|
+
// .hover(
|
8788
|
+
// function() {
|
8789
|
+
// // the *hover* effect.
|
8790
|
+
// // only on buttons that are not the "active" tab, or disabled
|
8791
|
+
// button
|
8792
|
+
// .not('.' + tm + '-state-active')
|
8793
|
+
// .not('.' + tm + '-state-disabled')
|
8794
|
+
// .addClass(tm + '-state-hover');
|
8795
|
+
// },
|
8796
|
+
// function() {
|
8797
|
+
// // undo the *hover* effect
|
8798
|
+
// button
|
8799
|
+
// .removeClass(tm + '-state-hover')
|
8800
|
+
// .removeClass(tm + '-state-down'); // if mouseleave happens before mouseup
|
8801
|
+
// }
|
8802
|
+
// );
|
8787
8803
|
|
8788
8804
|
groupChildren = groupChildren.add(button);
|
8789
8805
|
}
|
8790
8806
|
}
|
8791
8807
|
});
|
8792
8808
|
|
8793
|
-
|
8794
|
-
|
8795
|
-
|
8796
|
-
|
8797
|
-
|
8809
|
+
// Using Bootstrap's btn-group, which handles automatically in CSS
|
8810
|
+
//
|
8811
|
+
// if (isOnlyButtons) {
|
8812
|
+
// groupChildren
|
8813
|
+
// .first().addClass(tm + '-corner-left').end()
|
8814
|
+
// .last().addClass(tm + '-corner-right').end();
|
8815
|
+
// }
|
8798
8816
|
|
8799
8817
|
if (groupChildren.length > 1) {
|
8800
8818
|
groupEl = $('<div/>');
|
8801
8819
|
if (isOnlyButtons) {
|
8802
|
-
groupEl.addClass('fc-button-group');
|
8820
|
+
// groupEl.addClass('fc-button-group');
|
8821
|
+
groupEl.addClass('btn-group');
|
8803
8822
|
}
|
8804
8823
|
groupEl.append(groupChildren);
|
8805
8824
|
sectionEl.append(groupEl);
|
@@ -8812,36 +8831,50 @@ function Header(calendar, options) {
|
|
8812
8831
|
|
8813
8832
|
return sectionEl;
|
8814
8833
|
}
|
8815
|
-
|
8816
|
-
|
8834
|
+
|
8835
|
+
|
8817
8836
|
function updateTitle(text) {
|
8818
8837
|
el.find('h2').text(text);
|
8819
8838
|
}
|
8820
|
-
|
8821
|
-
|
8839
|
+
|
8840
|
+
|
8822
8841
|
function activateButton(buttonName) {
|
8823
8842
|
el.find('.fc-' + buttonName + '-button')
|
8824
|
-
.addClass(tm + '-state-active');
|
8843
|
+
// .addClass(tm + '-state-active');
|
8844
|
+
.removeClass('btn-default')
|
8845
|
+
.addClass('btn-primary');
|
8825
8846
|
}
|
8826
|
-
|
8827
|
-
|
8847
|
+
|
8848
|
+
|
8828
8849
|
function deactivateButton(buttonName) {
|
8829
8850
|
el.find('.fc-' + buttonName + '-button')
|
8830
|
-
.removeClass(tm + '-state-active');
|
8851
|
+
// .removeClass(tm + '-state-active');
|
8852
|
+
.removeClass('btn-primary')
|
8853
|
+
.addClass('btn-default');
|
8831
8854
|
}
|
8832
|
-
|
8833
|
-
|
8855
|
+
|
8856
|
+
|
8834
8857
|
function disableButton(buttonName) {
|
8835
8858
|
el.find('.fc-' + buttonName + '-button')
|
8836
8859
|
.attr('disabled', 'disabled')
|
8837
|
-
.addClass(tm + '-state-disabled');
|
8860
|
+
// .addClass(tm + '-state-disabled');
|
8861
|
+
// Such a hack!
|
8862
|
+
// Just because of the Slate bootswatch
|
8863
|
+
.removeClass('btn-default')
|
8864
|
+
.addClass('btn-primary');
|
8865
|
+
// Hack over… for now!
|
8838
8866
|
}
|
8839
|
-
|
8840
|
-
|
8867
|
+
|
8868
|
+
|
8841
8869
|
function enableButton(buttonName) {
|
8842
8870
|
el.find('.fc-' + buttonName + '-button')
|
8843
8871
|
.removeAttr('disabled')
|
8844
|
-
.removeClass(tm + '-state-disabled');
|
8872
|
+
// .removeClass(tm + '-state-disabled');
|
8873
|
+
// Such a hack!
|
8874
|
+
// Just because of the Slate bootswatch
|
8875
|
+
.removeClass('btn-primary')
|
8876
|
+
.addClass('btn-default');
|
8877
|
+
// Hack over…
|
8845
8878
|
}
|
8846
8879
|
|
8847
8880
|
|
@@ -8866,8 +8899,8 @@ var eventGUID = 1;
|
|
8866
8899
|
|
8867
8900
|
function EventManager(options) { // assumed to be a calendar
|
8868
8901
|
var t = this;
|
8869
|
-
|
8870
|
-
|
8902
|
+
|
8903
|
+
|
8871
8904
|
// exports
|
8872
8905
|
t.isFetchNeeded = isFetchNeeded;
|
8873
8906
|
t.fetchEvents = fetchEvents;
|
@@ -8881,14 +8914,14 @@ function EventManager(options) { // assumed to be a calendar
|
|
8881
8914
|
t.normalizeEventRange = normalizeEventRange;
|
8882
8915
|
t.normalizeEventRangeTimes = normalizeEventRangeTimes;
|
8883
8916
|
t.ensureVisibleEventRange = ensureVisibleEventRange;
|
8884
|
-
|
8885
|
-
|
8917
|
+
|
8918
|
+
|
8886
8919
|
// imports
|
8887
8920
|
var trigger = t.trigger;
|
8888
8921
|
var getView = t.getView;
|
8889
8922
|
var reportEvents = t.reportEvents;
|
8890
|
-
|
8891
|
-
|
8923
|
+
|
8924
|
+
|
8892
8925
|
// locals
|
8893
8926
|
var stickySource = { events: [] };
|
8894
8927
|
var sources = [ stickySource ];
|
@@ -8908,21 +8941,21 @@ function EventManager(options) { // assumed to be a calendar
|
|
8908
8941
|
}
|
8909
8942
|
}
|
8910
8943
|
);
|
8911
|
-
|
8912
|
-
|
8913
|
-
|
8944
|
+
|
8945
|
+
|
8946
|
+
|
8914
8947
|
/* Fetching
|
8915
8948
|
-----------------------------------------------------------------------------*/
|
8916
|
-
|
8917
|
-
|
8949
|
+
|
8950
|
+
|
8918
8951
|
function isFetchNeeded(start, end) {
|
8919
8952
|
return !rangeStart || // nothing has been fetched yet?
|
8920
8953
|
// or, a part of the new range is outside of the old range? (after normalizing)
|
8921
8954
|
start.clone().stripZone() < rangeStart.clone().stripZone() ||
|
8922
8955
|
end.clone().stripZone() > rangeEnd.clone().stripZone();
|
8923
8956
|
}
|
8924
|
-
|
8925
|
-
|
8957
|
+
|
8958
|
+
|
8926
8959
|
function fetchEvents(start, end) {
|
8927
8960
|
rangeStart = start;
|
8928
8961
|
rangeEnd = end;
|
@@ -8934,8 +8967,8 @@ function EventManager(options) { // assumed to be a calendar
|
|
8934
8967
|
fetchEventSource(sources[i], fetchID);
|
8935
8968
|
}
|
8936
8969
|
}
|
8937
|
-
|
8938
|
-
|
8970
|
+
|
8971
|
+
|
8939
8972
|
function fetchEventSource(source, fetchID) {
|
8940
8973
|
_fetchEventSource(source, function(eventInputs) {
|
8941
8974
|
var isArraySource = $.isArray(source.events);
|
@@ -8971,8 +9004,8 @@ function EventManager(options) { // assumed to be a calendar
|
|
8971
9004
|
}
|
8972
9005
|
});
|
8973
9006
|
}
|
8974
|
-
|
8975
|
-
|
9007
|
+
|
9008
|
+
|
8976
9009
|
function _fetchEventSource(source, callback) {
|
8977
9010
|
var i;
|
8978
9011
|
var fetchers = fc.sourceFetchers;
|
@@ -9081,12 +9114,12 @@ function EventManager(options) { // assumed to be a calendar
|
|
9081
9114
|
}
|
9082
9115
|
}
|
9083
9116
|
}
|
9084
|
-
|
9085
|
-
|
9086
|
-
|
9117
|
+
|
9118
|
+
|
9119
|
+
|
9087
9120
|
/* Sources
|
9088
9121
|
-----------------------------------------------------------------------------*/
|
9089
|
-
|
9122
|
+
|
9090
9123
|
|
9091
9124
|
function addEventSource(sourceInput) {
|
9092
9125
|
var source = buildEventSource(sourceInput);
|
@@ -9168,9 +9201,9 @@ function EventManager(options) { // assumed to be a calendar
|
|
9168
9201
|
) ||
|
9169
9202
|
source; // the given argument *is* the primitive
|
9170
9203
|
}
|
9171
|
-
|
9172
|
-
|
9173
|
-
|
9204
|
+
|
9205
|
+
|
9206
|
+
|
9174
9207
|
/* Manipulation
|
9175
9208
|
-----------------------------------------------------------------------------*/
|
9176
9209
|
|
@@ -9212,7 +9245,7 @@ function EventManager(options) { // assumed to be a calendar
|
|
9212
9245
|
return !/^_|^(id|allDay|start|end)$/.test(name);
|
9213
9246
|
}
|
9214
9247
|
|
9215
|
-
|
9248
|
+
|
9216
9249
|
// returns the expanded events that were created
|
9217
9250
|
function renderEvent(eventInput, stick) {
|
9218
9251
|
var abstractEvent = buildEventFromInput(eventInput);
|
@@ -9241,8 +9274,8 @@ function EventManager(options) { // assumed to be a calendar
|
|
9241
9274
|
|
9242
9275
|
return [];
|
9243
9276
|
}
|
9244
|
-
|
9245
|
-
|
9277
|
+
|
9278
|
+
|
9246
9279
|
function removeEvents(filter) {
|
9247
9280
|
var eventID;
|
9248
9281
|
var i;
|
@@ -9271,8 +9304,8 @@ function EventManager(options) { // assumed to be a calendar
|
|
9271
9304
|
|
9272
9305
|
reportEvents(cache);
|
9273
9306
|
}
|
9274
|
-
|
9275
|
-
|
9307
|
+
|
9308
|
+
|
9276
9309
|
function clientEvents(filter) {
|
9277
9310
|
if ($.isFunction(filter)) {
|
9278
9311
|
return $.grep(cache, filter);
|
@@ -9285,28 +9318,28 @@ function EventManager(options) { // assumed to be a calendar
|
|
9285
9318
|
}
|
9286
9319
|
return cache; // else, return all
|
9287
9320
|
}
|
9288
|
-
|
9289
|
-
|
9290
|
-
|
9321
|
+
|
9322
|
+
|
9323
|
+
|
9291
9324
|
/* Loading State
|
9292
9325
|
-----------------------------------------------------------------------------*/
|
9293
|
-
|
9294
|
-
|
9326
|
+
|
9327
|
+
|
9295
9328
|
function pushLoading() {
|
9296
9329
|
if (!(loadingLevel++)) {
|
9297
9330
|
trigger('loading', null, true, getView());
|
9298
9331
|
}
|
9299
9332
|
}
|
9300
|
-
|
9301
|
-
|
9333
|
+
|
9334
|
+
|
9302
9335
|
function popLoading() {
|
9303
9336
|
if (!(--loadingLevel)) {
|
9304
9337
|
trigger('loading', null, false, getView());
|
9305
9338
|
}
|
9306
9339
|
}
|
9307
|
-
|
9308
|
-
|
9309
|
-
|
9340
|
+
|
9341
|
+
|
9342
|
+
|
9310
9343
|
/* Event Normalization
|
9311
9344
|
-----------------------------------------------------------------------------*/
|
9312
9345
|
|
@@ -10786,4 +10819,4 @@ fcViews.agendaDay = {
|
|
10786
10819
|
;;
|
10787
10820
|
|
10788
10821
|
return fc; // export for Node/CommonJS
|
10789
|
-
});
|
10822
|
+
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullcalendar-bootstrap-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.1.
|
4
|
+
version: 2.3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marius Butuc
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|