Sha256: 5c2ec040150c33added7467a76e5eff9e701cf02ef736c19710e8521cf3fb701

Contents?: true

Size: 1.37 KB

Versions: 2

Compression:

Stored size: 1.37 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"curate/facet_mine.js;FI"
pathname;TI"T/Users/jfriesen/Repositories/curate/app/assets/javascripts/curate/facet_mine.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+
hnRI"length;Ti§I"digest;TI"%e2f448f25d8c28d65a8ee1737766be0e;FI"source;TI"§Blacklight = function() {
  var buffer = new Array;
  return {
    onLoad: function(func) {
      buffer.push(func);
    },

    activate: function() {
      for(var i = 0; i < buffer.length; i++) {
        buffer[i].call();
      }
    }
  }
}();

if (typeof Turbolinks !== "undefined") {
  $(document).on('page:load', function() {
    Blacklight.activate();  
  });
}
$(document).ready(function() {
  Blacklight.activate();  
});

(function($) {
  var facet_mine_behavior = function() {
    $('#aux-search-submit-header').hide();

    $('input[name="works"]').on("change", function(e) {
      $(this).closest('form').submit();
    });

  };  


  // TODO when we upgrade blacklight to 4.4+, we can use Blacklight.onLoad()
  if (typeof Turbolinks !== "undefined") {
    $(document).on('page:load', function() {
      facet_mine_behavior();  
    });
  }
  $(document).ready(function() {
    facet_mine_behavior();  
  });
})(jQuery);
;TI"required_assets_digest;TI"%58d7431587a106ab471130fb9c8d7d44;FI"
_version;TI"%2cf3622cbba861b85d33ffabfa420c13;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
curate-0.5.2 spec/internal/tmp/cache/assets/development/sprockets/1d084625b16ac691b3ac53f7c3af9383
curate-0.5.2 spec/internal/tmp/cache/assets/development/sprockets/bde0f49ec559c0b99dac3fa0ad98919b