[fusion-commits] r2364 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Apr 14 09:19:20 EDT 2011
Author: madair
Date: 2011-04-14 06:19:20 -0700 (Thu, 14 Apr 2011)
New Revision: 2364
Modified:
trunk/lib/jxlib.uncompressed.js
Log:
update to Jx for keeping a tree up-to-date; also remove a dangling comma
Modified: trunk/lib/jxlib.uncompressed.js
===================================================================
--- trunk/lib/jxlib.uncompressed.js 2011-04-13 17:32:06 UTC (rev 2363)
+++ trunk/lib/jxlib.uncompressed.js 2011-04-14 13:19:20 UTC (rev 2364)
@@ -39120,7 +39120,7 @@
- tree_vert_line.png
...
*/
-// $Id: tree.js 990 2010-10-07 17:22:02Z pagameba $
+// $Id: tree.js 1011 2011-01-24 18:18:42Z pagameba $
/**
* Class: Jx.Tree
*
@@ -39285,6 +39285,7 @@
item.owner = this;
this.list.add(item, position);
this.setDirty(true);
+ this.update(true);
return this;
},
/**
@@ -39305,6 +39306,7 @@
this.list.remove(item);
item.setSelection(null);
this.setDirty(true);
+ this.update(true);
return this;
},
/**
@@ -39325,6 +39327,7 @@
withItem.setSelection(this.selection);
item.setSelection(null);
this.setDirty(true);
+ this.update(true);
return this;
},
@@ -39824,7 +39827,7 @@
...
*/
-// $Id: treefolder.js 960 2010-06-06 22:23:16Z jonlb at comcast.net $
+// $Id: treefolder.js 1011 2011-01-24 18:18:42Z pagameba $
/**
* Class: Jx.TreeFolder
*
@@ -39999,7 +40002,7 @@
/* avoid update if not attached to tree yet */
if (!this.domObj.parentNode) return;
- if (this.tree.dirty) {
+ if (this.tree.dirty || (this.owner && this.owner.dirty)) {
if (!$defined(isLast)) {
isLast = this.domObj.hasClass('jxTreeBranchLastOpen') ||
this.domObj.hasClass('jxTreeBranchLastClosed');
@@ -40098,6 +40101,14 @@
this.tree.setSelection(selection);
return this;
},
+
+ setDirty: function(state) {
+ this.parent(state);
+ if (this.tree) {
+ this.tree.setDirty(true);
+ }
+ }
+
});/*
---
More information about the fusion-commits
mailing list