- 'Add...' butotn is now grayed when there is nothing to Add

- Better handling of AllowedValues, supporting autocompletes
- Cleanup unused code in wizard.utils.js

SVN:code[151]
This commit is contained in:
Denis Flaven
2009-09-11 21:23:24 +00:00
parent d922b4c7f3
commit 8d76f47303
6 changed files with 22 additions and 29 deletions

View File

@@ -74,12 +74,16 @@ function LinksWidget(id, sLinkedClass, sExtKeyToMe, sExtKeyToRemote, aAttributes
this.aLinks.push(oLink);
}
this.Refresh();
// Grey out the 'Add...' button
$('#ac_add_'+this.id).attr('disabled', 'disabled');
}
this.OnLinkCancel = function()
{
// Restore the links to their previous value (just in case)
this.aLinks = this.aPreviousLinks;
// Grey out the 'Add...' button
$('#ac_add_'+this.id).attr('disabled', 'disabled');
}
this.RemoveLink = function(index)