Sha256: 59739b1717565562f6f2a84a2bd5467bc1986785b108db468a2952d74e492e3b

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"blacklight/autofocus.js;FI"
pathname;TI"‚/Volumes/TempStorage/rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/blacklight-5.0.1/app/assets/javascripts/blacklight/autofocus.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+©¸òRI"length;TiïI"digest;TI"%8c49c944a7b388688a7001c74715f404;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"%86fb2bae34d07a396dec155a99d4612c;FI"
_version;TI"%01dc9d4cb5b0ece13ed47cc1cabfeb41;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.0.1 spec/internal/tmp/cache/assets/development/sprockets/89e9146e88b64247d977a64e32337a6f
blacklight-spotlight-0.0.1 spec/internal/tmp/cache/assets/development/sprockets/9658a89c9b1c50b842e900bdc963f908