diff options
Diffstat (limited to 'app/php/controls/scripts')
-rw-r--r-- | app/php/controls/scripts/AddToFilter.js | 5 | ||||
-rw-r--r-- | app/php/controls/scripts/CalendarGroupFilter.js | 29 | ||||
-rw-r--r-- | app/php/controls/scripts/CalendarLabel.js | 11 | ||||
-rw-r--r-- | app/php/controls/scripts/CalendarScaffold.js | 8 |
4 files changed, 0 insertions, 53 deletions
diff --git a/app/php/controls/scripts/AddToFilter.js b/app/php/controls/scripts/AddToFilter.js deleted file mode 100644 index e6d7b39..0000000 --- a/app/php/controls/scripts/AddToFilter.js +++ /dev/null @@ -1,5 +0,0 @@ -$(document).on('ready', function() { - $('input.addToFilterBox').on('change', function() { - $(this).attr('disabled', true); - }); -}); diff --git a/app/php/controls/scripts/CalendarGroupFilter.js b/app/php/controls/scripts/CalendarGroupFilter.js deleted file mode 100644 index e6c1d73..0000000 --- a/app/php/controls/scripts/CalendarGroupFilter.js +++ /dev/null @@ -1,29 +0,0 @@ -$(document).on('ready', function() { - var selectBoxes = $('.selectGroup input.box'); - var selectAllBox = $('.selectAllGroups input.box'); - selectBoxes.on('change', function() { - var groups = []; - var allSelected = true; - $('.selectGroup input.box').each(function() { - var box = $(this); - if (box.is(':checked')) { - groups.push(box.val()); - } else { - allSelected = false; - } - }); - if (allSelected) { - selectAllBox.prop('checked', true); - } else { - selectAllBox.removeAttr('checked'); - } - $(document).trigger('Application.calendarGroupFilterChanged', {groups: groups}); - }); - selectAllBox.on('change', function() { - if ($(this).is(':checked')) { - selectBoxes.prop('checked', true).trigger('change'); - } else { - selectBoxes.removeAttr('checked').trigger('change'); - } - }); -}); diff --git a/app/php/controls/scripts/CalendarLabel.js b/app/php/controls/scripts/CalendarLabel.js deleted file mode 100644 index 8193e56..0000000 --- a/app/php/controls/scripts/CalendarLabel.js +++ /dev/null @@ -1,11 +0,0 @@ -$(document).on('Application.calendarGroupFilterChanged', function(event, args) { - var selectedGroups = args.groups || []; - $('.calendar').each(function() { - var label = $(this); - if (selectedGroups.indexOf(label.attr('data-group')) >= 0) { - label.show(); - } else { - label.hide(); - } - }); -}); diff --git a/app/php/controls/scripts/CalendarScaffold.js b/app/php/controls/scripts/CalendarScaffold.js deleted file mode 100644 index d4b8ec5..0000000 --- a/app/php/controls/scripts/CalendarScaffold.js +++ /dev/null @@ -1,8 +0,0 @@ -$('body').on( - 'click', - 'main .calendarScaffold tbody a[href^="javascript:;//"], main .calendarScaffold tbody input.visibilityToggle', - function(e) { - var loader = $('<div>').addClass('calendarScaffoldLoader'); - $('main .calendarScaffold div[id$="_Container"]').append(loader); - } -); |