зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 50829. Don't need anymore to create a new row when the user click on an existing address field as the tree now always has an empty area at the bottom. R=jefft
This commit is contained in:
Родитель
c05f21b61d
Коммит
89d766de52
|
@ -270,18 +270,6 @@ function awCleanupRows()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function awNotAnEmptyArea(event)
|
|
||||||
{
|
|
||||||
//This is temporary until i figure out how to ensure to always having an empty space after the last row
|
|
||||||
dump("awNotAnEmptyArea\n");
|
|
||||||
|
|
||||||
var lastInput = awGetInputElement(top.MAX_RECIPIENTS);
|
|
||||||
if ( lastInput && lastInput.value )
|
|
||||||
awAppendNewRow(false);
|
|
||||||
|
|
||||||
event.preventBubble();
|
|
||||||
}
|
|
||||||
|
|
||||||
function awClickEmptySpace(targ, setFocus)
|
function awClickEmptySpace(targ, setFocus)
|
||||||
{
|
{
|
||||||
if (targ.localName != 'treechildren')
|
if (targ.localName != 'treechildren')
|
||||||
|
|
|
@ -65,7 +65,6 @@ Rights Reserved.
|
||||||
class="plain textfield-addressingWidget"
|
class="plain textfield-addressingWidget"
|
||||||
style="width:0px;" allowevents="true"
|
style="width:0px;" allowevents="true"
|
||||||
onkeypress="awRecipientKeyPress(event, this)"
|
onkeypress="awRecipientKeyPress(event, this)"
|
||||||
onclick="awNotAnEmptyArea(event);"
|
|
||||||
autocomplete="true" timeout="300"
|
autocomplete="true" timeout="300"
|
||||||
searchSessionType="addrbook" displayMenu="true"/>
|
searchSessionType="addrbook" displayMenu="true"/>
|
||||||
</treecell>
|
</treecell>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче