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:
parent
8229641d24
commit
a1112551b8
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user