Sha256: f89ff316e94f864afe5b78c927a6f48573db522182d5fe37f097bde9ce02b4dd
Contents?: true
Size: 939 Bytes
Versions: 14
Compression:
Stored size: 939 Bytes
Contents
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. // // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. // //= require jquery //= require jquery_ujs //= require turbolinks //= require_tree . function findFocus() { if ($('.findResults li').length > 0) { $('.findResults li:first a').focus(); } else { $(".findForm input[type='text']").focus(); } } // to cope with rails 4 turbolinks $(document).ready(findFocus); $(document).on('page:change', findFocus);
Version data entries
14 entries across 14 versions & 1 rubygems