Reset SAML attribute fields (#390)

This commit is contained in:
Clément Oudot 2011-11-15 09:03:09 +00:00
parent 4b94c91d9d
commit 686d046f01

View File

@ -811,6 +811,12 @@ function filearea(id) {
function samlAssertion(id) {
currentId=id;
var t=lmdata(id).split(';');
// Reset text fields
$('#samlAssertionIndex').attr('value','');
$('#samlAssertionLocation').attr('value','');
// Fill fields
if(t[0]==1){
$('#samlAssertionDefaultOn').attr('checked',true);
}else{
@ -829,6 +835,13 @@ function samlAssertion(id) {
function samlAttribute(id) {
currentId=id;
var t=lmdata(id).split(';');
// Reset text fields
$('#samlAttributeKey').attr('value','');
$('#samlAttributeName').attr('value','');
$('#samlAttributeFriendlyName').attr('value','');
// Fill fields
if(t[0]==1){
$('#samlAttributeMandatoryOn').attr('checked',true);
}else{