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

- old
+ new

@@ -1,418 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1421754717.5820115: @value"7{I" -class:EFI"BundledAsset;FI"logical_path;FI"active_admin.js;FI" pathname;FI"1$root/app/assets/javascripts/active_admin.js;TI"content_type;FI"application/javascript;FI" -mtime;FI"2015-01-20T11:14:34+00:00;FI" length;FiP5I" digest;F"%d942a75f959a076a19410d840381dd30I" source;FI"P5(function() { - window.AA = {}; - -}).call(this); -(function() { - window.AA.CheckboxToggler = AA.CheckboxToggler = (function() { - function CheckboxToggler(options, container) { - var defaults; - this.options = options; - this.container = container; - defaults = {}; - this.options = $.extend({}, defaults, 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.bind("change", (function(_this) { - return function(e) { - return _this._didChangeCheckbox(e.target); - }; - })(this)); - return this.toggle_all_checkbox.bind("change", (function(_this) { - return function(e) { - return _this._didChangeToggleAllCheckbox(); - }; - })(this)); - }; - - CheckboxToggler.prototype._didChangeCheckbox = function(checkbox) { - if (this.checkboxes.filter(":checked").length === this.checkboxes.length - 1) { - return this._uncheckToggleAllCheckbox(); - } else if (this.checkboxes.filter(":checked").length === this.checkboxes.length) { - return this._checkToggleAllCheckbox(); - } - }; - - CheckboxToggler.prototype._didChangeToggleAllCheckbox = function() { - if (this.toggle_all_checkbox.attr("checked") === "checked") { - return this._checkAllCheckboxes(); - } else { - return this._uncheckAllCheckboxes(); - } - }; - - CheckboxToggler.prototype._uncheckToggleAllCheckbox = function() { - return this.toggle_all_checkbox.removeAttr("checked"); - }; - - CheckboxToggler.prototype._checkToggleAllCheckbox = function() { - return this.toggle_all_checkbox.attr("checked", "checked"); - }; - - CheckboxToggler.prototype._uncheckAllCheckboxes = function() { - return this.checkboxes.each((function(_this) { - return function(index, el) { - $(el).removeAttr("checked"); - return _this._didChangeCheckbox(el); - }; - })(this)); - }; - - CheckboxToggler.prototype._checkAllCheckboxes = function() { - return this.checkboxes.each((function(_this) { - return function(index, el) { - $(el).attr("checked", "checked"); - return _this._didChangeCheckbox(el); - }; - })(this)); - }; - - return CheckboxToggler; - - })(); - - (function($) { - return $.widget.bridge('checkboxToggler', AA.CheckboxToggler); - })(jQuery); - -}).call(this); -(function() { - window.AA.DropdownMenu = AA.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, 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(); - return this; - } - - 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.offset().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.offset().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', AA.DropdownMenu); - return $(function() { - return $(".dropdown_menu").aaDropdownMenu(); - }); - })(jQuery); - -}).call(this); -(function() { - window.AA.Popover = AA.Popover = (function() { - function Popover(options, element) { - var defaults; - this.options = options; - 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(); - return this; - } - - 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', AA.Popover); - })(jQuery); - -}).call(this); -(function() { - var __hasProp = {}.hasOwnProperty, - __extends = 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; }; - - window.AA.TableCheckboxToggler = AA.TableCheckboxToggler = (function(_super) { - __extends(TableCheckboxToggler, _super); - - 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").find("td").bind("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; - - })(AA.CheckboxToggler); - - (function($) { - return $.widget.bridge('tableCheckboxToggler', AA.TableCheckboxToggler); - })(jQuery); - -}).call(this); -(function() { - $(function() { - $(".datepicker").datepicker({ - dateFormat: "yy-mm-dd" - }); - $(".clear_filters_btn").click(function() { - window.location.search = ""; - return false; - }); - return $(".dropdown_button").popover(); - }); - -}).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").find("table.index_table").length) { - $(".paginated_collection 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); - - - - +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1423819755.8909264: @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" $(function() { if (!!$.prototype.tooltip) { $( '#questions' ).tooltip(); } @@ -432,6 +22,18 @@ } }) }); }); -;FI"required_assets_digest;F"%8897d3c62279e80de77cc62b3dc25fb6I" _version;F"%29ed33acb378e0c0b27fe5f96549550a +;FI"dependency_digest;F"%666d9be5bb7c51243ba11da15e8133e5I"required_paths;F[I"{/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/lib/namespace.js.coffee;TI"Ž/home/rob/.rvm/gems/ruby-1.9.3-p547/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/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/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/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/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages/application.js.coffee;TI"|/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages/batch_actions.js.coffee;TI"r/home/rob/.rvm/gems/ruby-1.9.3-p547/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"g/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/lib;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%67fd2b525429934924839f2d4d18615a{I" path;FI"n/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%92ab79719775120815983ea962c8b742{I" path;FI"i/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%796e61ef49fcba0f081c25cbd7848cac{I" path;FI"r/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/application.js;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%56b581953cf4a0b0fa8131bddcc8f92f{I" path;FI"{/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/lib/namespace.js.coffee;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%9b3a9608dbf3800a9da97de6ad2017e0{I" path;FI"Ž/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.checkbox-toggler.js.coffee;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%1f7a69275767edb7f09abf9e13283c7d{I" path;FI"‹/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.dropdown-menu.js.coffee;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%192f8f77d29bdc7009f482e2ab6c58f1{I" path;FI"…/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.popover.js.coffee;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%e98a413dc8880a282a5b718e240fc07e{I" path;FI"”/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/components/jquery.aa.table-checkbox-toggler.js.coffee;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%5c5b7c2fc24ffb39b3af7b086748b3bf{I" path;FI"/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages/application.js.coffee;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%3db802a1ca2afbb1d182c13f41154c09{I" path;FI"|/home/rob/.rvm/gems/ruby-1.9.3-p547/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/pages/batch_actions.js.coffee;TI" +mtime;FI"2014-08-26T10:24:52+01:00;FI" digest;F"%a1d011dbe1a16f060bf92fdc686b3c25I" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file