{:uriI"file:///Users/forsaken/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/activeadmin-1.3.1/app/assets/javascripts/active_admin/lib/per_page.js.coffee?type=application/javascript&pipeline=self&id=978dd30e22e25057a4d2a106b7db0578bbb07bd116b03c50c0d26dfee506388a:ET:load_pathI"l/Users/forsaken/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/activeadmin-1.3.1/app/assets/javascripts;T: filenameI"‹/Users/forsaken/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/activeadmin-1.3.1/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() { var onDOMReady; 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); onDOMReady = function() { return $('.pagination_per_page select').perPage(); }; $(document).ready(onDOMReady).on('page:load turbolinks:load', onDOMReady); }).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/forsaken/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/activeadmin-1.3.1/app/assets/javascripts/active_admin/lib/per_page.js.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%¬*x)à !Ör¹©¦KB®÷c/ñÚÉ© Úw—ÇV: lengthi>:dependencies_digest"%ð_²u}=0XéÃ~ãõ°O' ¸Ê?rWW’Há:idI"E978dd30e22e25057a4d2a106b7db0578bbb07bd116b03c50c0d26dfee506388a;F: mtimel+’¿y[