{I" class:EFI"BundledAsset;FI"logical_path;FI"/active_admin/lib/table-checkbox-toggler.js;TI" pathname;FI"«/Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/bundler/gems/activeadmin-7d968c2898cb/app/assets/javascripts/active_admin/lib/table-checkbox-toggler.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;Fl+°àåTI" length;FiËI" digest;F"%0033efab949b10a1d62d5aeb5c5ef1b6I" source;FI"Ë(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; }; ActiveAdmin.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 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); $.widget.bridge('tableCheckboxToggler', ActiveAdmin.TableCheckboxToggler); }).call(this); ;TI"required_assets_digest;F"%92f95c637b15baacd6b33418c3f6f350I" _version;F"%a805bf9eb4f9751b8ea0c520b2a29a36