Sha256: 3043c62e2715d1567db6088be26176c444bc55a3d6db6eb38cf9e63468a809d7
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auxiliary_addons-0.5.6 | lib/auxiliary_addons/jscript_helper.rb |
auxiliary_addons-0.5.5 | lib/auxiliary_addons/jscript_helper.rb |
auxiliary_addons-0.5.4 | lib/auxiliary_addons/jscript_helper.rb |