mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
- '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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user