Sha256: cfc639a0b934a054b90d84de969d9d9228075be3d5c3c4aa6a0ca05de803c299

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"3tenon/features/tenon_content/library_filter.js;FI"
pathname;TI"p/Users/seanroberts/Sites/tenon/app/assets/javascripts/tenon/features/tenon_content/library_filter.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+b+SI"length;TiCI"digest;TI"%a08572a92250942191b9de4055958ed7;FI"source;TI"C(function() {
  var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };

  Tenon.features.tenonContent.LibraryFilter = (function() {

    function LibraryFilter() {
      this._clearFilter = __bind(this._clearFilter, this);
      this._hideNonMatched = __bind(this._hideNonMatched, this);
      this.filter = __bind(this.filter, this);      $(document).on('keyup', '.tenon-library input.filter', this.filter);
    }

    LibraryFilter.prototype.filter = function() {
      var val;
      val = $('.tenon-library input.filter').val();
      if (val === '') {
        return this._clearFilter();
      } else {
        return this._hideNonMatched(val);
      }
    };

    LibraryFilter.prototype._hideNonMatched = function(val) {
      $('.tenon-library a.add_fields').hide();
      return $('.tenon-library a.add_fields[data-searchable-title*="' + val.toLowerCase() + '"]').show();
    };

    LibraryFilter.prototype._clearFilter = function() {
      return $('.tenon-library a.add_fields').show();
    };

    return LibraryFilter;

  })();

}).call(this);
;TI"required_assets_digest;TI"%b47b48ac48e7e632d0703f475afec51b;FI"
_version;TI"%a56df69ef97ba4d9f1a23bf9b0add58a;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
tenon-1.0 spec/dummy/tmp/cache/assets/development/sprockets/3ff1c23ad5b0ddd643cff2549c306f1a
tenon-1.0 spec/dummy/tmp/cache/assets/development/sprockets/a8713c75143aa62209c3f46896537a62