app/views/adminpanel/templates/checkbox.js.erb in adminpanel-3.3.3 vs app/views/adminpanel/templates/checkbox.js.erb in adminpanel-3.3.4

- old
+ new

@@ -1,5 +1,5 @@ -var model_name = "<%= params[:model_name] %>"; -var new_model = "<%= @model.name.demodulize.downcase %>"; -row = '<label class="checkbox"><input checked="checked" id="' + model_name + '_' + new_model + '_ids_" name="' + model_name + '[' + new_model + '_ids][]" type="checkbox" value="<%= @resource_instance.id %>"><%= @resource_instance.name %></label>'; +var model_name = "<%= params[:model_name] -%>"; +var new_model = "<%= @model.name.demodulize.underscore -%>"; +var row = '<label class="checkbox"><input checked="checked" id="' + model_name + '_' + new_model + '_ids_" name="' + model_name + '[' + new_model + '_ids][]" type="checkbox" value="<%= @resource_instance.id %>"><%= @resource_instance.name %></label>'; $("#" + new_model + "-relation").append(row); $("#remote-form-modal").modal('toggle');