Orbit/app/assets/javascripts/user_form.js

6 lines
165 B
JavaScript

$(document).ready(function(){
$('#user_active_role').change(function(){
$('#role_models .roles_block').hide();
$('#'+this.value+'_block').toggle();
});
});