removes old link_to_remote

pull/6827/head
Johannes Wollert 11 years ago committed by Sebastian Schuster
parent 9797b28408
commit e75e8091a1
  1. 6
      app/assets/javascripts/global_roles/global_roles.js
  2. 6
      app/views/principal_roles/_show_table_row.html.erb

@ -69,12 +69,12 @@
enable_member_forms: function(){
$('#member_attributes input, #member_attributes input, #member_permissions input').each(function (ix, el) {
global_roles.enable_element(el);
global_roles.enable_element(el);
});
},
enable_element: function(element){
$(element).attr("disabled", false);
element.enable();
},
disable_global_forms: function(){
@ -90,7 +90,7 @@
},
disable_element: function(element){
$(element).attr("disabled", true);
element.disable();
}
}
$(document).ready(global_roles.init);

@ -21,8 +21,8 @@ See doc/COPYRIGHT.rdoc for more details.
<% if buttons[:edit]%>
<%= link_to_function l(:button_edit), "return false;", :class => 'icon icon-edit' %>
<%end%>
<%= link_to_remote(l(:button_delete), { :url => principal_role_url(principal_role.id),
:method => :delete },
:class => 'icon icon-delete') %>
<%= link_to(l(:button_delete),
principal_role,
{ method: :delete, remote: true, class: 'icon icon-delete' }) %>
</td>
</tr>

Loading…
Cancel
Save