Sha256: 19cf2b3c653556083ded83367e4a0ead81bf70bd4da125093a9c6bdee0006310

Contents?: true

Size: 1.65 KB

Versions: 6

Compression:

Stored size: 1.65 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"!active_admin/lib/per_page.js;FI"
pathname;TI"Œ/opt/rubies/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/active_admin-c5e3ab82b9b5/app/assets/javascripts/active_admin/lib/per_page.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+€Ü'UI"length;Ti‡I"digest;TI"%239488a1a0b13f3cda3dddf002b6ed21;FI"source;TI"‡(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);
;TI"required_assets_digest;TI"%9e8ad0b260f02aa3c37fa85aa391c07b;FI"
_version;TI"%64e62ddc273c2f5847f30d698ca14b67;F

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
admin_invitable-0.0.3 spec/dummy/tmp/cache/assets/development/sprockets/4378d5d313e990ba965c1f5b50dc65c7
admin_invitable-0.0.3 spec/dummy/tmp/cache/assets/development/sprockets/af0b09b451f04ea0434a8b4fbbbdc1d4
admin_invitable-0.0.2 spec/dummy/tmp/cache/assets/development/sprockets/4378d5d313e990ba965c1f5b50dc65c7
admin_invitable-0.0.2 spec/dummy/tmp/cache/assets/development/sprockets/af0b09b451f04ea0434a8b4fbbbdc1d4
admin_invitable-0.0.1 spec/dummy/tmp/cache/assets/development/sprockets/4378d5d313e990ba965c1f5b50dc65c7
admin_invitable-0.0.1 spec/dummy/tmp/cache/assets/development/sprockets/af0b09b451f04ea0434a8b4fbbbdc1d4