Pman.Dialog.AdminEnumImages.js
- "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n \n if (!s || s.length != 1) {\n Roo.MessageBox.alert(\"Error\", \"Select a single image to edit\");\n return;\n }\n var data = _this.grid.getDataSource().getById(s[0].data.id).data;\n console.log(_this);\n _this.dialog.show(data, function() {\n _this.grid.footer.onClick('first');\n });\n \n}\n "
+ "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n \n if (!s || s.length != 1) {\n Roo.MessageBox.alert(\"Error\", \"Select a single image to edit\");\n return;\n }\n var data = _this.grid.getDataSource().getById(s[0].data.id).data;\n console.log(_this);\n _this.show(data, function() {\n _this.grid.footer.onClick('first');\n });\n \n}\n "
},
"text" : "Edit",
"xtype" : "Button",
},
"text" : "Edit",
"xtype" : "Button",
}
var data = _this.grid.getDataSource().getById(s[0].data.id).data;
console.log(_this);
}
var data = _this.grid.getDataSource().getById(s[0].data.id).data;
console.log(_this);
- _this.dialog.show(data, function() {
+ _this.show(data, function() {
_this.grid.footer.onClick('first');
});
_this.grid.footer.onClick('first');
});