This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
|
$(document).ready(function(){
|
|
$('#user_role_id').change(function(){
|
|
$('#roles .attributes_block').hide();
|
|
$('#'+this.value+'_block').toggle();
|
|
});
|
|
|
|
$('.sub_role_select').change(function(){
|
|
$('#sub_role_' + this.value).toggle();
|
|
});
|
|
}); |