Sha256: 1f8592f12c906d6c891f106fc7b5a4b5740e9a6e48cfb058cbe6ad56d6c5176f
Contents?: true
Size: 568 Bytes
Versions: 19
Compression:
Stored size: 568 Bytes
Contents
- id = dom_id(@field) - container_id = "#{@field.klass_name.downcase}_field_groups" - if @field.errors.empty? html = $.parseHTML('#{ j (render :partial => "field", :collection => [@field]) }'); $('##{id}').replaceWith(html); $('##{id}').effect("highlight", { duration:1000 }); $('##{container_id}').sortable('reset'); - else html = $.parseHTML('#{ j(render :partial => "form") }'); $('##{id}').find('.edit_field').replaceWith( html ); $('##{id}').effect("shake", { duration:250, distance: 6 }); $('##{id}').find('input[type="text"]').first().focus();
Version data entries
19 entries across 19 versions & 2 rubygems