removed superfluous js method

pull/6827/head
Jens Ulferts 14 years ago
parent 2d115a47e6
commit 3aeb2eb401
  1. 13
      assets/javascripts/principal_roles.js

@ -1,7 +1,6 @@
var principal_roles = { var principal_roles = {
init: function(){ init: function(){
principal_roles.set_table_visibility(); principal_roles.set_table_visibility();
principal_roles.set_role_selection_visibility();
}, },
set_table_visibility: function(){ set_table_visibility: function(){
@ -16,18 +15,6 @@ var principal_roles = {
} }
}, },
set_role_selection_visibility: function(){
$$('.principal_role_option').each(function(element){
if($$('.assigned_global_role_' + element.down('input').value).length > 0){
//element.hide();
}
else{
//element.show();
}
//element.checked = false;
})
},
role_already_assigned: function(){ role_already_assigned: function(){
return ($$('.assigned_global_role_' + element.down('input').value).length > 0) return ($$('.assigned_global_role_' + element.down('input').value).length > 0)
} }

Loading…
Cancel
Save