Sha256: 09977f6b3126fe1823f96e1a5bde2419da629c86bb1387a67426b5b3f7b86b1f

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"blacklight/autofocus.js;FI"
pathname;TI"}/home/tjohnson/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/blacklight-5.8.2/app/assets/javascripts/blacklight/autofocus.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ž¬TI"length;TiJI"digest;TI"%4ffa9441865d4c66cccefb719c22cb3f;FI"source;TI"JBlacklight = 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();
      }
    }
  }
}();

// turbolinks triggers page:load events on page transition
// If app isn't using turbolinks, this event will never be triggered, no prob. 
$(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"%d87829692f9c3227bf9b5fa98839b095;FI"
_version;TI"%64e62ddc273c2f5847f30d698ca14b67;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
krikri-0.1.2 spec/internal/tmp/cache/assets/development/sprockets/421c89c58d3e76046a0294dae1f731ff
krikri-0.1.2 spec/internal/tmp/cache/assets/development/sprockets/5f9c17ac10fc851dc9a90373e64887ea
krikri-0.1.1 spec/internal/tmp/cache/assets/development/sprockets/421c89c58d3e76046a0294dae1f731ff
krikri-0.1.1 spec/internal/tmp/cache/assets/development/sprockets/5f9c17ac10fc851dc9a90373e64887ea