Sha256: c9b6792107d97bb6474cbf706b7996ca6c6bb3537fda328a477a9808ab372ef5

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"blacklight/autofocus.js;FI"
pathname;TI"z/Users/jfriesen/.rvm/gems/ruby-2.0.0-p247@curate/gems/blacklight-4.5.0/app/assets/javascripts/blacklight/autofocus.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+
hnRI"length;TiïI"digest;TI"%ca60bcd642717aa176fda95512bf4946;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($) {
  Blacklight.do_search_autofocus_fallback = function() {
    if (typeof Modernizer != "undefined") {
      if (Modernizr.autofocus) {
        return;
      }
    }

    $('input[autofocus]').focus();
  }

  Blacklight.onLoad(function() {
    Blacklight.do_search_autofocus_fallback();
  });
})(jQuery);
;TI"required_assets_digest;TI"%cfdfa242787ba154545be17b387316bd;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/7b325464c16ee4f771e5649c12db20cb
curate-0.5.2 spec/internal/tmp/cache/assets/development/sprockets/87483257b350b31ace81e530557b4bda