Skip to content
Snippets Groups Projects
Unverified Commit bcdd88fb authored by Dylan's avatar Dylan
Browse files

FIX : add privilege in serviceAccount

parent 895cbc10
No related branches found
No related tags found
3 merge requests!100Develop,!84Release/2.2,!82Release/2.2
...@@ -259,15 +259,19 @@ ...@@ -259,15 +259,19 @@
var serviceURI = $("#selectPrivilegeURI option:selected").data('serviceuri'); var serviceURI = $("#selectPrivilegeURI option:selected").data('serviceuri');
var description = $("#selectPrivilegeURI option:selected").val(); var description = $("#selectPrivilegeURI option:selected").val();
$("#privilegeExemple").find("[name=privilegeURI]:first") if(description){
.clone()
.find('input') $("#privilegeExemple").find("[name=privilegeURI]:first")
.val(description) .clone()
.data("serviceuri",serviceURI) .find('input')
.closest('[name=privilegeURI]') .val(description)
.appendTo($("#listPrivilege")); .data("serviceuri",serviceURI)
.closest('[name=privilegeURI]')
$("#selectPrivilegeURI").val('').find('option[data-serviceuri="'+serviceURI+'"]').hide(); .appendTo($("#listPrivilege"));
$("#selectPrivilegeURI").val('').find('option[data-serviceuri="'+serviceURI+'"]').hide();
}
}); });
//Delete privilege //Delete privilege
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment