Sha256: 8dd5cc926f6c09d8e42c4fb6ad24baba999d34a2c5e85e941b8d7607b9a8d9cd
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
module AuxiliaryAddons module JscriptHelper # ::Rails.logger.error("...") # # Common JScript helpers # # def set_focus_on_load(id) if ::AuxiliaryAddons.options[:use_prototype] javascript_tag("Event.observe(window, 'load', $('#{id}').focus());") end if ::AuxiliaryAddons.options[:use_jquery] if ::AuxiliaryAddons.options[:use_jquery_no_conflict] javascript_tag("jQuery(document).ready(function(){jQuery('##{id}').focus();});") else javascript_tag("$(document).ready(function(){$('##{id}').focus();});") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auxiliary_addons-0.5.7 | lib/auxiliary_addons/jscript_helper.rb |