Merge pull request #1140 from opf/fix/replace_prototype_with_jquery_in_accessibility_js

replace prototype with jquery in accessibility.js
pull/1145/head
Alex Coles 11 years ago
commit 9be1bc4d87
  1. 11
      app/assets/javascripts/accessibility.js

@ -26,11 +26,8 @@
// See doc/COPYRIGHT.rdoc for more details.
//++
$(document).observe('dom:loaded', function() {
// If there is a flash message, give focus
// necessary for screen readers
var flash_focus = $$('div.flash a').first();
if (flash_focus != undefined) {
flash_focus.focus();
}
// If there is a flash message, give focus it.
// This is necessary for screen readers.
jQuery(function() {
jQuery('div.flash a').first().focus();
});

Loading…
Cancel
Save