Skip to content

Commit

Permalink
Fixed to ordered list and duplicate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed May 17, 2010
1 parent 18aad98 commit 699b6fc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/webiva_form_elements.rb
Expand Up @@ -881,8 +881,6 @@ def ordered_selection_list(field,class_name,options={}) #:nodoc:
existing_options = @object.send(field).map do |elm|
idx+=1
<<-TXT
<input type='hidden' name='#{@object_name}[#{field}][][#{id_field}]' value='' />
#{"<input type='hidden' name='#{@object_name}[#{field}][][#{position_field}]' value='' />" if sortable}
<div class='ordered_selection_list_item' id='#{obj_name}_#{field}_element_#{elm.send(id_field)}'>
<div class='ordered_selection_list_remove'><a href='javascript:void(0);' onclick='OrderedList.delete("#{obj_name}_#{field}", "#{elm.send(id_field)}");'>X</a></div>
#{h elm.name}
Expand Down

0 comments on commit 699b6fc

Please sign in to comment.