From 08b24718db4cb2d2ac027f5906c27d411a914ac7 Mon Sep 17 00:00:00 2001 From: "chanial%noos.fr" Date: Wed, 23 Apr 2003 17:29:05 +0000 Subject: [PATCH] keep the selection active after a DND in the bookmark manager git-svn-id: svn://10.0.0.236/trunk@141698 18797224-902f-48f8-a5cc-f745e15eee43 --- .../components/bookmarks/content/bookmarksTree.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/browser/components/bookmarks/content/bookmarksTree.xml b/mozilla/browser/components/bookmarks/content/bookmarksTree.xml index c1acf0a99c0..478ddb676c8 100644 --- a/mozilla/browser/components/bookmarks/content/bookmarksTree.xml +++ b/mozilla/browser/components/bookmarks/content/bookmarksTree.xml @@ -676,7 +676,7 @@ target = this.mOuter.getTreeTarget(rItem, rParent, orientation); } //var firstVisibleRow = this.mOuter.treeBoxObject.getFirstVisibleRow() - //this.mOuter.treeBoxObject.selection.selectEventsSuppressed = true; + this.mOuter.treeBoxObject.selection.selectEventsSuppressed = true; // Notify the datasource that we're about to begin a batch operation //var observer = this.mOuter.tree.builder.QueryInterface(Components.interfaces.nsIRDFObserver); //observer.beginUpdateBatch(this.db); @@ -694,10 +694,10 @@ // temporary hack: for an unknown reason, rebuilding cause a scroll to the bottom // if the first visible row is not 0 //this.mOuter.treeBoxObject.scrollToRow(firstVisibleRow); - //this.mOuter.updateTreeSelection(); + this.mOuter.updateTreeSelection(); // use of a timer to speedup - //var This = this.mOuter; - //setTimeout( function (){This.treeBoxObject.selection.selectEventsSuppressed = false}, 100) + var This = this.mOuter; + setTimeout( function (){This.treeBoxObject.selection.selectEventsSuppressed = false}, 100) //dump("6:"+(Date.now()-date)+"\n") },