Sha256: 30f56e12595c0e1311ae5cec6c40f25898a8aabc024e5f1d1219eae7b96a8cf2
Contents?: true
Size: 588 Bytes
Versions: 27
Compression:
Stored size: 588 Bytes
Contents
InlineForms::SPECIAL_COLUMN_TYPES[:date_select]=:date # date def date_select_show(object, attribute) link_to_inline_edit object, attribute, object.send(attribute) end def date_select_edit(object, attribute) out = text_field_tag attribute, object[attribute] out << '<SCRIPT>'.html_safe out << "$(function() { ".html_safe out << '$("#'.html_safe + attribute.to_s.html_safe + '").datepicker();'.html_safe out << '});'.html_safe out << '</SCRIPT>'.html_safe return out end def date_select_update(object, attribute) object[attribute.to_sym] = params[attribute.to_sym] end
Version data entries
27 entries across 27 versions & 1 rubygems