Orbit/app/views/admin/user_attribute_models/toggle_enable.js.erb

3 lines
182 B
Plaintext

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