Sha256: 44163d95e62f261aa7e00e1f07cebe01c8794750ec6e33fb847b42344d99bf52

Contents?: true

Size: 420 Bytes

Versions: 23

Compression:

Stored size: 420 Bytes

Contents

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.id %>"><%= resource.name %></label>';
$("#" + new_model + "-relation").append(row);
$("#remote-form-modal").modal('toggle');

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
adminpanel-2.5.3 app/views/adminpanel/templates/create_has_many.js.erb
adminpanel-2.5.2 app/views/adminpanel/templates/create_has_many.js.erb
adminpanel-2.5.1 app/views/adminpanel/templates/create_has_many.js.erb
adminpanel-2.5.0 app/views/adminpanel/templates/create_has_many.js.erb
adminpanel-2.4.3 app/views/adminpanel/templates/create_has_many.js.erb
adminpanel-2.4.2 app/views/adminpanel/shared/create_has_many.js.erb
adminpanel-2.4.1 app/views/adminpanel/shared/create_has_many.js.erb
adminpanel-2.4.0 app/views/adminpanel/shared/create_has_many.js.erb
adminpanel-2.3.1 app/views/adminpanel/shared/create_has_many.js.erb
adminpanel-2.3.0 app/views/adminpanel/shared/create_has_many.js.erb
adminpanel-2.2.5 app/views/shared/create_has_many.js.erb
adminpanel-2.2.4 app/views/shared/create_has_many.js.erb
adminpanel-2.2.3 app/views/shared/create_has_many.js.erb
adminpanel-2.2.2 app/views/shared/create_has_many.js.erb
adminpanel-2.2.1 app/views/shared/create_has_many.js.erb
adminpanel-2.2.0 app/views/shared/create_has_many.js.erb
adminpanel-2.1.7 app/views/shared/create_has_many.js.erb
adminpanel-2.1.6 app/views/shared/create_has_many.js.erb
adminpanel-2.1.5 app/views/shared/create_has_many.js.erb
adminpanel-2.1.3 app/views/shared/create_has_many.js.erb