Sha256: 72c401e132775d234de6c191a4dde9ba459405b7cd39d2ccb97d35916bcab790
Contents?: true
Size: 608 Bytes
Versions: 6
Compression:
Stored size: 608 Bytes
Contents
InlineForms::SPECIAL_COLUMN_TYPES[:datetime_select]=:date # datetime def datetime_select_show(object, attribute) link_to_inline_edit object, attribute, object.send(attribute) end def datetime_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 datetime_select_update(object, attribute) object[attribute.to_sym] = params[attribute.to_sym] end
Version data entries
6 entries across 6 versions & 1 rubygems