[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js
From: |
Raphaël Semeteys |
Subject: |
[Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js |
Date: |
Wed, 31 Jan 2007 07:14:58 +0000 |
CVSROOT: /sources/qsos
Module name: qsos
Changes by: Raphaël Semeteys <rsemeteys> 07/01/31 07:14:58
Modified files:
apps/xuleditor/chrome/content: editor.js
Log message:
Tree is now collapsed at opening
Criterion tab is selected when tree item is selected
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/xuleditor/chrome/content/editor.js?cvsroot=qsos&r1=1.13&r2=1.14
Patches:
Index: editor.js
===================================================================
RCS file: /sources/qsos/qsos/apps/xuleditor/chrome/content/editor.js,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- editor.js 14 Dec 2006 16:48:52 -0000 1.13
+++ editor.js 31 Jan 2007 07:14:58 -0000 1.14
@@ -1,7 +1,7 @@
/*
-** Copyright (C) 2006 Atos Origin
+** Copyright (C) 2007 Atos Origin
**
-** Author: Rapha� Semeteys <address@hidden>
+** Author: Raphael Semeteys <address@hidden>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
@@ -248,8 +248,10 @@
treecell.setAttribute("label", criterion.title);
treerow.appendChild(treecell);
treeitem.appendChild(treerow);
- if (criterion.children != "null")
+ if (criterion.children != "null") {
+ treeitem.setAttribute("open", "false");
treeitem.appendChild(buildsubtree(criterion.children));
+ }
return treeitem;
}
@@ -471,6 +473,7 @@
document.getElementById("mytree").focus();
if (tree.currentIndex != -1) {
id =
tree.view.getItemAtIndex(tree.currentIndex).firstChild.firstChild.getAttribute("id");
+ document.getElementById("t").selectedIndex = 1;
document.getElementById("t-c-title").setAttribute("label",
myDoc.getkeytitle(id));
document.getElementById("f-c-desc0").setAttribute("label", "0:
"+myDoc.getkeydesc0(id));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js,
Raphaël Semeteys <=