test/dummy/tmp/cache/assets/D38/540/sprockets%2F86e1ad844bc9df4491a2a52b870421db in qwester-0.4.0 vs test/dummy/tmp/cache/assets/D38/540/sprockets%2F86e1ad844bc9df4491a2a52b870421db in qwester-0.5.0

- old
+ new

@@ -1,8 +1,415 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1438009398.7389932: @value"{I" -class:EFI"ProcessedAsset;FI"logical_path;FI"active_admin.js;TI" pathname;FI"1$root/app/assets/javascripts/active_admin.js;TI"content_type;FI"application/javascript;FI" -mtime;FI"2013-01-14T14:53:59+00:00;FI" length;FiI" digest;F"%78f13328925f431a0bd28a2f7d89e0baI" source;FI" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1516797302.6749773: @value"6{I" +class:ETI"BundledAsset;FI"logical_path;TI"active_admin.js;TI" pathname;TI"1$root/app/assets/javascripts/active_admin.js;FI"content_type;TI"application/javascript;TI" +mtime;TI"2018-01-24T09:35:12+00:00;TI" length;Ti4I" digest;TI"%e5166cb10699a42943cbd26cac06c300;FI" source;TI"4(function() { + window.ActiveAdmin = {}; + + if (!window.AA) { + window.AA = window.ActiveAdmin; + } + +}).call(this); +(function() { + window.ActiveAdmin.CheckboxToggler = ActiveAdmin.CheckboxToggler = (function() { + function CheckboxToggler(options, container) { + var defaults; + this.options = options; + this.container = container; + defaults = {}; + this.options = $.extend({}, defaults, this.options); + this._init(); + this._bind(); + } + + CheckboxToggler.prototype._init = function() { + if (!this.container) { + throw new Error('Container element not found'); + } else { + this.$container = $(this.container); + } + if (!this.$container.find('.toggle_all').length) { + throw new Error('"toggle all" checkbox not found'); + } else { + this.toggle_all_checkbox = this.$container.find('.toggle_all'); + } + return this.checkboxes = this.$container.find(':checkbox').not(this.toggle_all_checkbox); + }; + + CheckboxToggler.prototype._bind = function() { + this.checkboxes.change((function(_this) { + return function(e) { + return _this._didChangeCheckbox(e.target); + }; + })(this)); + return this.toggle_all_checkbox.change((function(_this) { + return function() { + return _this._didChangeToggleAllCheckbox(); + }; + })(this)); + }; + + CheckboxToggler.prototype._didChangeCheckbox = function(checkbox) { + switch (this.checkboxes.filter(':checked').length) { + case this.checkboxes.length - 1: + return this.toggle_all_checkbox.prop({ + checked: null + }); + case this.checkboxes.length: + return this.toggle_all_checkbox.prop({ + checked: true + }); + } + }; + + CheckboxToggler.prototype._didChangeToggleAllCheckbox = function() { + var setting; + setting = this.toggle_all_checkbox.prop('checked') ? true : null; + return this.checkboxes.each((function(_this) { + return function(index, el) { + $(el).prop({ + checked: setting + }); + return _this._didChangeCheckbox(el); + }; + })(this)); + }; + + return CheckboxToggler; + + })(); + + jQuery(function($) { + return $.widget.bridge('checkboxToggler', ActiveAdmin.CheckboxToggler); + }); + +}).call(this); +(function() { + window.ActiveAdmin.DropdownMenu = ActiveAdmin.DropdownMenu = (function() { + function DropdownMenu(options, element) { + var defaults; + this.options = options; + this.element = element; + this.$element = $(this.element); + defaults = { + fadeInDuration: 20, + fadeOutDuration: 100, + onClickActionItemCallback: null + }; + this.options = $.extend({}, defaults, this.options); + this.$menuButton = this.$element.find(".dropdown_menu_button"); + this.$menuList = this.$element.find(".dropdown_menu_list_wrapper"); + this.isOpen = false; + this._buildMenuList(); + this._bind(); + } + + DropdownMenu.prototype.open = function() { + this.isOpen = true; + this.$menuList.fadeIn(this.options.fadeInDuration); + this._positionMenuList(); + this._positionNipple(); + return this; + }; + + DropdownMenu.prototype.close = function() { + this.isOpen = false; + this.$menuList.fadeOut(this.options.fadeOutDuration); + return this; + }; + + DropdownMenu.prototype.destroy = function() { + this.$element.unbind(); + this.$element = null; + return this; + }; + + DropdownMenu.prototype.isDisabled = function() { + return this.$menuButton.hasClass("disabled"); + }; + + DropdownMenu.prototype.disable = function() { + return this.$menuButton.addClass("disabled"); + }; + + DropdownMenu.prototype.enable = function() { + return this.$menuButton.removeClass("disabled"); + }; + + DropdownMenu.prototype.option = function(key, value) { + if ($.isPlainObject(key)) { + return this.options = $.extend(true, this.options, key); + } else if (key != null) { + return this.options[key]; + } else { + return this.options[key] = value; + } + }; + + DropdownMenu.prototype._buildMenuList = function() { + this.$menuList.prepend("<div class=\"dropdown_menu_nipple\"></div>"); + return this.$menuList.hide(); + }; + + DropdownMenu.prototype._bind = function() { + $("body").bind('click', (function(_this) { + return function() { + if (_this.isOpen === true) { + return _this.close(); + } + }; + })(this)); + return this.$menuButton.bind('click', (function(_this) { + return function() { + if (!_this.isDisabled()) { + if (_this.isOpen === true) { + _this.close(); + } else { + _this.open(); + } + } + return false; + }; + })(this)); + }; + + DropdownMenu.prototype._positionMenuList = function() { + var centerOfButtonFromLeft, centerOfmenuListFromLeft, menuListLeftPos; + centerOfButtonFromLeft = this.$menuButton.position().left + this.$menuButton.outerWidth() / 2; + centerOfmenuListFromLeft = this.$menuList.outerWidth() / 2; + menuListLeftPos = centerOfButtonFromLeft - centerOfmenuListFromLeft; + return this.$menuList.css("left", menuListLeftPos); + }; + + DropdownMenu.prototype._positionNipple = function() { + var $nipple, bottomOfButtonFromTop, centerOfmenuListFromLeft, centerOfnippleFromLeft, nippleLeftPos; + centerOfmenuListFromLeft = this.$menuList.outerWidth() / 2; + bottomOfButtonFromTop = this.$menuButton.position().top + this.$menuButton.outerHeight() + 10; + this.$menuList.css("top", bottomOfButtonFromTop); + $nipple = this.$menuList.find(".dropdown_menu_nipple"); + centerOfnippleFromLeft = $nipple.outerWidth() / 2; + nippleLeftPos = centerOfmenuListFromLeft - centerOfnippleFromLeft; + return $nipple.css("left", nippleLeftPos); + }; + + return DropdownMenu; + + })(); + + (function($) { + $.widget.bridge('aaDropdownMenu', ActiveAdmin.DropdownMenu); + return $(function() { + return $(".dropdown_menu").aaDropdownMenu(); + }); + })(jQuery); + +}).call(this); +(function() { + window.ActiveAdmin.Popover = ActiveAdmin.Popover = (function() { + function Popover(options1, element) { + var defaults; + this.options = options1; + this.element = element; + this.$element = $(this.element); + defaults = { + fadeInDuration: 20, + fadeOutDuration: 100, + autoOpen: true, + pageWrapperElement: "#wrapper", + onClickActionItemCallback: null + }; + this.options = $.extend({}, defaults, options); + this.$popover = null; + this.isOpen = false; + if ($(this.$element.attr("href")).length > 0) { + this.$popover = $(this.$element.attr("href")); + } else { + this.$popover = this.$element.next(".popover"); + } + this._buildPopover(); + this._bind(); + } + + Popover.prototype.open = function() { + this.isOpen = true; + this.$popover.fadeIn(this.options.fadeInDuration); + this._positionPopover(); + this._positionNipple(); + return this; + }; + + Popover.prototype.close = function() { + this.isOpen = false; + this.$popover.fadeOut(this.options.fadeOutDuration); + return this; + }; + + Popover.prototype.destroy = function() { + this.$element.removeData('popover'); + this.$element.unbind(); + this.$element = null; + return this; + }; + + Popover.prototype.option = function() {}; + + Popover.prototype._buildPopover = function() { + this.$popover.prepend("<div class=\"popover_nipple\"></div>"); + this.$popover.hide(); + return this.$popover.addClass("popover"); + }; + + Popover.prototype._bind = function() { + $(this.options.pageWrapperElement).bind('click', (function(_this) { + return function(e) { + if (_this.isOpen === true) { + return _this.close(); + } + }; + })(this)); + if (this.options.autoOpen === true) { + return this.$element.bind('click', (function(_this) { + return function() { + if (_this.isOpen === true) { + _this.close(); + } else { + _this.open(); + } + return false; + }; + })(this)); + } + }; + + Popover.prototype._positionPopover = function() { + var centerOfButtonFromLeft, centerOfPopoverFromLeft, popoverLeftPos; + centerOfButtonFromLeft = this.$element.offset().left + this.$element.outerWidth() / 2; + centerOfPopoverFromLeft = this.$popover.outerWidth() / 2; + popoverLeftPos = centerOfButtonFromLeft - centerOfPopoverFromLeft; + return this.$popover.css("left", popoverLeftPos); + }; + + Popover.prototype._positionNipple = function() { + var $nipple, bottomOfButtonFromTop, centerOfPopoverFromLeft, centerOfnippleFromLeft, nippleLeftPos; + centerOfPopoverFromLeft = this.$popover.outerWidth() / 2; + bottomOfButtonFromTop = this.$element.offset().top + this.$element.outerHeight() + 10; + this.$popover.css("top", bottomOfButtonFromTop); + $nipple = this.$popover.find(".popover_nipple"); + centerOfnippleFromLeft = $nipple.outerWidth() / 2; + nippleLeftPos = centerOfPopoverFromLeft - centerOfnippleFromLeft; + return $nipple.css("left", nippleLeftPos); + }; + + return Popover; + + })(); + + (function($) { + return $.widget.bridge('popover', ActiveAdmin.Popover); + })(jQuery); + +}).call(this); +(function() { + var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + hasProp = {}.hasOwnProperty; + + window.ActiveAdmin.TableCheckboxToggler = ActiveAdmin.TableCheckboxToggler = (function(superClass) { + extend(TableCheckboxToggler, superClass); + + function TableCheckboxToggler() { + return TableCheckboxToggler.__super__.constructor.apply(this, arguments); + } + + TableCheckboxToggler.prototype._init = function() { + return TableCheckboxToggler.__super__._init.apply(this, arguments); + }; + + TableCheckboxToggler.prototype._bind = function() { + TableCheckboxToggler.__super__._bind.apply(this, arguments); + return this.$container.find('tbody td').click((function(_this) { + return function(e) { + if (e.target.type !== 'checkbox') { + return _this._didClickCell(e.target); + } + }; + })(this)); + }; + + TableCheckboxToggler.prototype._didChangeCheckbox = function(checkbox) { + var $row; + TableCheckboxToggler.__super__._didChangeCheckbox.apply(this, arguments); + $row = $(checkbox).parents('tr'); + if (checkbox.checked) { + return $row.addClass('selected'); + } else { + return $row.removeClass('selected'); + } + }; + + TableCheckboxToggler.prototype._didClickCell = function(cell) { + return $(cell).parent('tr').find(':checkbox').click(); + }; + + return TableCheckboxToggler; + + })(ActiveAdmin.CheckboxToggler); + + jQuery(function($) { + return $.widget.bridge('tableCheckboxToggler', ActiveAdmin.TableCheckboxToggler); + }); + +}).call(this); +(function() { + $(function() { + $(document).on('focus', '.datepicker:not(.hasDatepicker)', function() { + return $(this).datepicker({ + dateFormat: 'yy-mm-dd' + }); + }); + $('.clear_filters_btn').click(function() { + return window.location.search = ''; + }); + $('.dropdown_button').popover(); + $('.filter_form').submit(function() { + return $(this).find(':input').filter(function() { + return this.value === ''; + }).prop('disabled', true); + }); + return $('.filter_form_field.select_and_search select').change(function() { + return $(this).siblings('input').prop({ + name: "q[" + this.value + "]" + }); + }); + }); + +}).call(this); +(function() { + jQuery(function($) { + $(document).delegate("#batch_actions_selector li a", "click.rails", function() { + $("#batch_action").val($(this).attr("data-action")); + return $("#collection_selection").submit(); + }); + if ($("#batch_actions_selector").length && $(":checkbox.toggle_all").length) { + if ($(".paginated_collection table.index_table").length) { + $(".paginated_collection table.index_table").tableCheckboxToggler(); + } else { + $(".paginated_collection").checkboxToggler(); + } + return $(".paginated_collection").find(":checkbox").bind("change", function() { + if ($(".paginated_collection").find(":checkbox").filter(":checked").length > 0) { + return $("#batch_actions_selector").aaDropdownMenu("enable"); + } else { + return $("#batch_actions_selector").aaDropdownMenu("disable"); + } + }); + } + }); + +}).call(this); + + + + $(function() { if (!!$.prototype.tooltip) { $( '#questions' ).tooltip(); } @@ -22,18 +429,6 @@ } }) }); }); -;FI"dependency_digest;F"%666d9be5bb7c51243ba11da15e8133e5I"required_paths;F[I"~/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/lib/namespace.js.coffee;TI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.checkbox-toggler.js.coffee;TI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.dropdown-menu.js.coffee;TI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.popover.js.coffee;TI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.table-checkbox-toggler.js.coffee;TI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages/application.js.coffee;TI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages/batch_actions.js.coffee;TI"z/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/application.js;TI"1$root/app/assets/javascripts/active_admin.js;TI"dependency_paths;F[{I" path;FI"1$root/app/assets/javascripts/active_admin.js;TI" -mtime;FI"2013-01-14T14:53:59+00:00;FI" digest;F"%1fe671299e9a581b945f7a70e3cb7fe7{I" path;FI"o/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/lib;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%67fd2b525429934924839f2d4d18615a{I" path;FI"v/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%92ab79719775120815983ea962c8b742{I" path;FI"q/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%796e61ef49fcba0f081c25cbd7848cac{I" path;FI"z/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/application.js;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%56b581953cf4a0b0fa8131bddcc8f92f{I" path;FI"~/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/lib/namespace.js.coffee;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%9b3a9608dbf3800a9da97de6ad2017e0{I" path;FI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.checkbox-toggler.js.coffee;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%1f7a69275767edb7f09abf9e13283c7d{I" path;FI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.dropdown-menu.js.coffee;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%192f8f77d29bdc7009f482e2ab6c58f1{I" path;FI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.popover.js.coffee;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%e98a413dc8880a282a5b718e240fc07e{I" path;FI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.table-checkbox-toggler.js.coffee;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%5c5b7c2fc24ffb39b3af7b086748b3bf{I" path;FI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages/application.js.coffee;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%3db802a1ca2afbb1d182c13f41154c09{I" path;FI"/home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages/batch_actions.js.coffee;TI" -mtime;FI"2015-05-13T07:54:51+01:00;FI" digest;F"%a1d011dbe1a16f060bf92fdc686b3c25I" _version;F"%6776f581a4329e299531e1d52aa59832 +;TI"required_assets_digest;TI"%3ec3a3c8ac64b9a2559d28044f857d4b;FI" _version;TI"%29ed33acb378e0c0b27fe5f96549550a;F \ No newline at end of file