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

Version Path
clwiki-3.0.4 app/assets/javascripts/cl_wiki/application.js
clwiki-3.0.3 app/assets/javascripts/cl_wiki/application.js
clwiki-3.0.2 app/assets/javascripts/cl_wiki/application.js
clwiki-3.0.1 app/assets/javascripts/cl_wiki/application.js
clwiki-3.0.0 app/assets/javascripts/cl_wiki/application.js
clwiki-2.4.0 app/assets/javascripts/cl_wiki/application.js
clwiki-2.3.2 app/assets/javascripts/cl_wiki/application.js
clwiki-2.3.0 app/assets/javascripts/cl_wiki/application.js
clwiki-2.2.0 app/assets/javascripts/cl_wiki/application.js
clwiki-2.1.8 app/assets/javascripts/cl_wiki/application.js
clwiki-2.1.7 app/assets/javascripts/cl_wiki/application.js
clwiki-2.1.6 app/assets/javascripts/cl_wiki/application.js
clwiki-2.0.1 app/assets/javascripts/cl_wiki/application.js
clwiki-2.0.0 app/assets/javascripts/cl_wiki/application.js