Sha256: fa6e17b69802b9d9b8a864dac0602f7b1e09e5bc80f93e979b704dfb83bf3d02
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
I"‡(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']; 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[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); } return params; }; return PerPage; })(); $.widget.bridge('perPage', ActiveAdmin.PerPage); $(function() { return $('.pagination_per_page select').perPage(); }); }).call(this); :ET
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
woodlock-0.0.1 | test/dummy/tmp/cache/assets/test/sprockets/v3.0/YMUqjIZ7PF8tJ-ilVMTpq4NlcffzXrIiX9pv_6s4zEk.cache |