Sha256: 7aa5e3f244bb5e0181a7ef383bb94fd58aef61060cc6fbf0767af2c72974df4f
Contents?: true
Size: 320 Bytes
Versions: 24
Compression:
Stored size: 320 Bytes
Contents
module Admin::PropertiesHelper def cancel_button(label, div_id, show=nil, hide=nil) onclick = %Q{Element.update('#{div_id}','');} onclick += %Q{Element.show('#{show}');} if show onclick += %Q{Element.hide('#{hide}');} if hide %Q{<button type="reset" onClick="#{onclick}">#{label}</button>} end end
Version data entries
24 entries across 24 versions & 3 rubygems