projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f9537ca
)
Roo/tree/TreeEditor.js
author
Alan Knowles
<alan@roojs.com>
Wed, 2 Nov 2011 05:18:31 +0000
(13:18 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 2 Nov 2011 05:18:31 +0000
(13:18 +0800)
Roo/tree/TreeEditor.js
patch
|
blob
|
history
diff --git
a/Roo/tree/TreeEditor.js
b/Roo/tree/TreeEditor.js
index
9e75e88
..
5ef54ea
100644
(file)
--- a/
Roo/tree/TreeEditor.js
+++ b/
Roo/tree/TreeEditor.js
@@
-14,10
+14,19
@@
* Provides editor functionality for inline tree node editing. Any valid {@link Roo.form.Field} can be used
* as the editor field.
* @constructor
* Provides editor functionality for inline tree node editing. Any valid {@link Roo.form.Field} can be used
* as the editor field.
* @constructor
- * @param {TreePanel} tree
- * @param {Object} config Either a prebuilt {@link Roo.form.Field} instance or a Field config object
+ * @param {Object} config (used to be the tree panel.)
+ * @param {Object} oldconfig DEPRECIATED Either a prebuilt {@link Roo.form.Field} instance or a Field config object
+ * @cfg {Roo.tree.TreePanel} tree The tree to bind to.
+
+ *
*/
*/
-Roo.tree.TreeEditor = function(tree, config){
+Roo.tree.TreeEditor = function(config, oldconfig) { // was -- (tree, config){
+ var tree = config;
+ if (oldconfig) {
+ config = oldconfig || {};
+ } else {
+ tree = config.tree;
+ }
config = config || {};
var field = config.events ? config : new Roo.form.TextField(config);
Roo.tree.TreeEditor.superclass.constructor.call(this, field);
config = config || {};
var field = config.events ? config : new Roo.form.TextField(config);
Roo.tree.TreeEditor.superclass.constructor.call(this, field);