Fixed not clearing 'value' menulist when 'name' was changed in Composer Advanced Edit dialog, b=100653, r=brade, sr=kin

git-svn-id: svn://10.0.0.236/trunk@105533 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com 2001-10-16 21:36:52 +00:00
parent 8229641d24
commit a1112551b8

View File

@ -147,7 +147,7 @@ function onChangeHTMLAttribute()
// First try to update existing attribute
// If not found, add new attribute
if ( !UpdateExistingAttribute( name, value, "HTMLAList" ) )
if ( !UpdateExistingAttribute( name, value, "HTMLAList" ) && value)
AddTreeItem ( name, value, "HTMLAList", HTMLAttrs );
}
@ -213,15 +213,14 @@ function onInputHTMLAttributeName()
var newValue = "";
var listLen = 0;
var deckIndex = 0;
// Index to which widget we were using to edit the value
var deckIndex = gDialog.AddHTMLAttributeValueDeck.getAttribute("index");
if (valueListName in gHTMLAttr)
{
var valueList = gHTMLAttr[valueListName];
// Index to which widget we were using to edit the value
deckIndex = gDialog.AddHTMLAttributeValueDeck.getAttribute("index");
listLen = valueList.length;
if (listLen > 0)
newValue = valueList[0];