orbit-4-2/app/views/admin/roles/toggle_enable.js.erb

3 lines
146 B
Plaintext

$("#enable_<%= @sub_role.id %>").toggle();
$("#disable_<%= @sub_role.id %>").toggle();
$("#attribute_<%= @sub_role.id %>").toggleClass('disable');