From 0c3cc2671f5c2bb0eca5fc8388cb134bcac6b55d Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Tue, 21 Oct 2003 19:47:25 +0000 Subject: [PATCH] #205138 r=mkaply, sr=bryner Code from jblanco - always select a folder so the New Folder button works --- xpfe/components/bookmarks/resources/addBookmark.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xpfe/components/bookmarks/resources/addBookmark.js b/xpfe/components/bookmarks/resources/addBookmark.js index 1841815cd58..b45524119a8 100644 --- a/xpfe/components/bookmarks/resources/addBookmark.js +++ b/xpfe/components/bookmarks/resources/addBookmark.js @@ -174,15 +174,15 @@ function Startup() } } } - + + if ((arg != "newBookmark") && (bookmarkView.currentIndex == -1)) + bookmarkView.treeBoxObject.selection.select(0); + if (shouldSetOKButton) onFieldInput(); if (document.getElementById("bookmarknamegrid").hidden) { bookmarkView.tree.focus(); - if (bookmarkView.currentIndex == -1) - bookmarkView.treeBoxObject.selection.select(0); - } - else { + } else { gFld_Name.select(); gFld_Name.focus(); }