mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
bug 241210 - new bookmarks have a keyword of undefined, fallout from adding ability to create keyword bookmarks from search fields. patch by pike@pikey.co.uk, r=me, also relocate sizeToContent call to ensure we size properly when hiding the keyword field
This commit is contained in:
parent
6e8f8f0e72
commit
6196781fdc
@ -102,7 +102,6 @@ var WSucks;
|
||||
|
||||
function Startup()
|
||||
{
|
||||
sizeToContent(); //XXXpch buggy imo, we shouldn't need it
|
||||
initServices();
|
||||
initBMService();
|
||||
gName = document.getElementById("name");
|
||||
@ -116,12 +115,17 @@ function Startup()
|
||||
gName.value = window.arguments[0];
|
||||
gName.select();
|
||||
gName.focus();
|
||||
gKeyword.value = window.arguments[7];
|
||||
gSuggestedKeyword = window.arguments[7];
|
||||
gKeywordRequired = window.arguments[8];
|
||||
if (!window.arguments[7] && !gKeywordRequired)
|
||||
if (!gSuggestedKeyword && !gKeywordRequired) {
|
||||
gKeywordRow.hidden = true;
|
||||
if (gKeywordRequired)
|
||||
gRequiredFields.push(gKeyword);
|
||||
} else {
|
||||
if (gSuggestedKeyword)
|
||||
gKeyword.value = gSuggestedKeyword;
|
||||
if (gKeywordRequired)
|
||||
gRequiredFields.push(gKeyword);
|
||||
}
|
||||
sizeToContent(); // do this here to ensure we size properly without the keyword field
|
||||
onFieldInput();
|
||||
gSelectedFolder = RDF.GetResource(gMenulist.selectedItem.id);
|
||||
gExpander.setAttribute("tooltiptext", gExpander.getAttribute("tooltiptextdown"));
|
||||
|
Loading…
Reference in New Issue
Block a user