Sha256: ecf0582f846014db3abcbf71ae4dd408ea19f1af613e39cd432de18867a4c012
Contents?: true
Size: 604 Bytes
Versions: 24
Compression:
Stored size: 604 Bytes
Contents
module Admin::PrototypesHelper 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 def exclusive_properties(prototype, properties) prototype.properties.each do |prop| logger.debug("proto property: #{prop.inspect}") properties.delete(prop) # properties = properties.delete_if { |p| p.id == pp.product_property_id } end properties end end
Version data entries
24 entries across 24 versions & 3 rubygems