Sha256: 52a319ba83c7f578ba3602919243186d72109943cae81445327b779788585d57

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

var model_name = "<%= params[:model_name] %>";
var new_model = "<%= @model.name.demodulize.downcase %>";
var option = '<option value="<%= resource.id %>" selected="selected"><%= resource.name %></option>';
$("#" + model_name + "_" + new_model + "_id").append(option);
$("#new-modal").modal('toggle');

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminpanel-2.0.1 app/views/shared/create_belongs_to.js.erb
adminpanel-2.0.0 app/views/shared/create_belongs_to.js.erb
adminpanel-1.2.12 app/views/shared/create_belongs_to.js.erb
adminpanel-1.2.11 app/views/shared/create_belongs_to.js.erb
adminpanel-1.2.10 app/views/shared/create_belongs_to.js.erb