{:uriI"ûfile:///Users/mak/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activeadmin-1.0.0/app/assets/javascripts/active_admin/lib/per_page.js.coffee?type=application/javascript&pipeline=self&id=015a2b311e5117406d4c9feb1ff0b58c36fbd20b4808404b92804ff8545f7dd0:ET:load_pathI"g/Users/mak/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activeadmin-1.0.0/app/assets/javascripts;T: filenameI"†/Users/mak/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activeadmin-1.0.0/app/assets/javascripts/active_admin/lib/per_page.js.coffee;T: nameI"active_admin/lib/per_page;T:logical_pathI"&active_admin/lib/per_page.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { ActiveAdmin.PerPage = (function() { function PerPage(options, element) { this.options = options; this.element = element; this.$element = $(this.element); this._init(); this._bind(); } PerPage.prototype._init = function() { return this.$params = this._queryParams(); }; PerPage.prototype._bind = function() { return this.$element.change((function(_this) { return function() { _this.$params['per_page'] = _this.$element.val(); delete _this.$params['page']; if (typeof Turbolinks !== 'undefined') { return Turbolinks.visit(window.location.href.split('?')[0] + '?' + $.param(_this.$params)); } else { return location.search = $.param(_this.$params); } }; })(this)); }; PerPage.prototype._queryParams = function() { var m, params, query, re; query = window.location.search.substring(1); params = {}; re = /([^&=]+)=([^&]*)/g; while (m = re.exec(query)) { params[this._decode(m[1])] = this._decode(m[2]); } return params; }; PerPage.prototype._decode = function(value) { return decodeURIComponent(value.replace(/\+/g, '%20')); }; PerPage.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; } }; return PerPage; })(); $.widget.bridge('perPage', ActiveAdmin.PerPage); $(document).on('ready page:load turbolinks:load', function() { return $('.pagination_per_page select').perPage(); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"”file-digest:///Users/mak/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activeadmin-1.0.0/app/assets/javascripts/active_admin/lib/per_page.js.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%”2) 08ëÔžú&×m~á: lengthi:dependencies_digest"%k½îãOX†ÓØ ÑìJý*Xb)A8ÝB0oqÇׂ§ê:idI"E015a2b311e5117406d4c9feb1ff0b58c36fbd20b4808404b92804ff8545f7dd0;F: mtimel+;åUY