[Pkg-mozext-commits] [sage-extension] 35/54: Making folders in the bookmark tree expand and collapse on single click to be more consistent with firefox

David Prévot taffit at moszumanska.debian.org
Fri May 1 03:10:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag sage_1_3
in repository sage-extension.

commit 0b43d0bee99ecdf8b5e0614064907a08b2ddbdbf
Author: Erik Arvidsson <erik.arvidsson at gmail.com>
Date:   Wed Oct 6 15:18:17 2004 +0000

    Making folders in the bookmark tree expand and collapse on single click to be more consistent with firefox
---
 src/sage/content/sage.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/sage/content/sage.js b/src/sage/content/sage.js
index 4cb18f2..54d720d 100755
--- a/src/sage/content/sage.js
+++ b/src/sage/content/sage.js
@@ -215,8 +215,15 @@ function bookmarksTreeClick(aEvent) {
 			return;
 		}
 		var obj = {};
-		bookmarksTree.treeBoxObject.getCellAt(aEvent.clientX, aEvent.clientY, {}, {}, obj);
+		var row = {};
+		bookmarksTree.treeBoxObject.getCellAt(aEvent.clientX, aEvent.clientY, row, {}, obj);
+		row = row.value;
+
 		if(obj.value == "twisty") return;
+
+		if (bookmarksTree.getTreeSelection().isContainer[0]) {
+			bookmarksTree.treeBoxObject.view.toggleOpenState(row);
+		}
 	} else if(aEvent.type == "keypress") {
 		if(aEvent.originalTarget.localName != "tree") {
 			return;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git



More information about the Pkg-mozext-commits mailing list