Sha256: 8837c2c720fba81ac0dafb6e17270dec7c0a644f51c456f870541fb7fc5ca223

Contents?: true

Size: 537 Bytes

Versions: 3

Compression:

Stored size: 537 Bytes

Contents

// $("#modal-button").trigger("click");
$('#new-category').modal('toggle');
row = "<tr><td><%= escape_javascript link_to resource.name, category_path(resource) %></td>";
row = row + "<td><%= escape_javascript link_to content_tag(:i, nil, :class => 'icon-pencil'), edit_category_path(category), :title => 'Editar' %> ";
row = row + "<%= escape_javascript link_to content_tag(:i, nil, :class => 'icon-remove'),[category], :title => 'Editar', :method => :delete %></td>";
row = row + "</tr>";
$("#<%= resource.model %>-table").append(row);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adminpanel-1.2.12 app/views/adminpanel/categories/create.js.erb
adminpanel-1.2.11 app/views/adminpanel/categories/create.js.erb
adminpanel-1.2.10 app/views/adminpanel/categories/create.js.erb