Pman.Tab.BuilderTree.bjs
Pman.Tab.BuilderTree.js
Pman.Tab.BuilderTree.js
"items": [
{
"listeners": {
- "click": "function (_self)\n{\n \n var str = Pman.Builder.Tree.currentNodeType();\n if (typeof(Pman.Builder.Wizard[str]) == 'undefined') {\n Roo.MessageBox.alert(\"Sorry\", \"No wizard exists for \" + str);\n return;\n }\n var cn = Pman.Builder.Tree.currentNode;\n if (typeof(cn.elConfig['.builderCfg']) == 'undefined') {\n Roo.MessageBox.alert(\"Sorry\", \"No configuration exists for \" + str);\n return;\n }\n \n \n var cfg = Roo.decode(cn.elConfig['.builderCfg']);\n Roo.log(cfg);\n Pman.Dialog.BuilderAddTable.show( \n cfg, \n function(data) {\n\n var cls = data['|xns'] + '.' + data['xtype'];\n \n var res = Pman.Builder.Wizard[cls](data); // with old..\n Pman.Builder.Tree.replaceCurrentNode( res );\n Pman.Tab.BuilderView.panel.redraw();\n \n }\n );\n\n \n // otherwise, call back with template??\n \n \n \n \n}"
+ "click": "function (_self)\n{\n \n var str = Pman.Builder.Tree.currentNodeType();\n if (typeof(Pman.Builder.Wizard[str]) == 'undefined') {\n Roo.MessageBox.alert(\"Sorry\", \"No wizard exists for \" + str);\n return;\n }\n var cn = Pman.Builder.Tree.currentNode;\n if (typeof(cn.elConfig['.builderCfg']) == 'undefined') {\n Roo.MessageBox.alert(\"Sorry\", \"No configuration exists for \" + str);\n return;\n }\n \n \n var cfg = Roo.decode(cn.elConfig['.builderCfg']);\n \n Roo.log(cfg);\n Pman.Dialog.BuilderAddTable.show( \n cfg, \n function(data) {\n\n \n var res = Pman.Builder.Wizard[str](data); // with old..\n Pman.Builder.Tree.replaceCurrentNode( res );\n Pman.Tab.BuilderView.panel.redraw();\n \n }\n );\n\n \n // otherwise, call back with template??\n \n \n \n \n}"
},
"text": "Edit Using Wizard",
"xtype": "Item",
var cfg = Roo.decode(cn.elConfig['.builderCfg']);
+
Roo.log(cfg);
Pman.Dialog.BuilderAddTable.show(
- cfg,
+ cfg,
function(data) {
- var cls = data['|xns'] + '.' + data['xtype'];
-
- var res = Pman.Builder.Wizard[cls](data); // with old..
+
+ var res = Pman.Builder.Wizard[str](data); // with old..
Pman.Builder.Tree.replaceCurrentNode( res );
Pman.Tab.BuilderView.panel.redraw();