{I" class:ETI"BundledAsset;FI"logical_path;TI"!blacklight/search_context.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/search_context.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+©¸òRI" length;TiåI" digest;TI"%f1668b7bf6fb3953a2efa434dd3a9325;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_context_behavior = function() { $('a[data-counter]').click(function(event) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = $(this).attr('href'); if(event.metaKey || event.ctrlKey){f.target = '_blank';}; var d = document.createElement('input'); d.setAttribute('type', 'hidden'); d.setAttribute('name', 'counter'); d.setAttribute('value', $(this).data('counter')); f.appendChild(d); var id = document.createElement('input'); id.setAttribute('type', 'hidden'); id.setAttribute('name', 'search_id'); id.setAttribute('value', $(this).data('search_id')); f.appendChild(id); var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'put'); f.appendChild(m); var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', $('meta[name="csrf-param"]').attr('content')); m.setAttribute('value', $('meta[name="csrf-token"]').attr('content')); f.appendChild(m); f.submit(); return false; }); }; Blacklight.onLoad(function() { Blacklight.do_search_context_behavior(); }); })(jQuery); ;TI"required_assets_digest;TI"%799fa3a279a19546e9ff72888c070803;FI" _version;TI"%01dc9d4cb5b0ece13ed47cc1cabfeb41;F