Sha256: 7c56d37a56e3673206588b641dc30df3d8d5dad7d1a21f0dd694012a05bd4f4e

Contents?: true

Size: 539 Bytes

Versions: 15

Compression:

Stored size: 539 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 => 'fa fa-pencil'), edit_category_path(category), :title => 'Editar' %> ";
row = row + "<%= escape_javascript link_to content_tag(:i, nil, :class => 'fa fa-remove'),[category], :title => 'Editar', :method => :delete %></td>";
row = row + "</tr>";
$("#<%= resource.model %>-table").append(row);

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
adminpanel-2.2.5 app/views/adminpanel/categories/create.js.erb
adminpanel-2.2.4 app/views/adminpanel/categories/create.js.erb
adminpanel-2.2.3 app/views/adminpanel/categories/create.js.erb
adminpanel-2.2.2 app/views/adminpanel/categories/create.js.erb
adminpanel-2.2.1 app/views/adminpanel/categories/create.js.erb
adminpanel-2.2.0 app/views/adminpanel/categories/create.js.erb
adminpanel-2.1.7 app/views/adminpanel/categories/create.js.erb
adminpanel-2.1.6 app/views/adminpanel/categories/create.js.erb
adminpanel-2.1.5 app/views/adminpanel/categories/create.js.erb
adminpanel-2.1.3 app/views/adminpanel/categories/create.js.erb
adminpanel-2.1.2 app/views/adminpanel/categories/create.js.erb
adminpanel-2.1.1 app/views/adminpanel/categories/create.js.erb
adminpanel-2.1.0 app/views/adminpanel/categories/create.js.erb
adminpanel-2.0.1 app/views/adminpanel/categories/create.js.erb
adminpanel-2.0.0 app/views/adminpanel/categories/create.js.erb