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

3 lines
149 B
Plaintext

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