},
rowdblclick : function (_self, rowIndex, e)
{
- if (!_this.dialog) return;
+ if (!_this.dialog) {
+ return;
+ }
var s = this.getDataSource().getAt(rowIndex);
if (s.data.id < 1 ) {
return;
listeners : {
click : function()
{
- if (!_this.dialog) return;
+ if (!_this.dialog) {
+ return;
+ }
_this.dialog.show( { id : 0, type: 2 } , function() {
_this.grid.ds.load({});
});
if (s[0].data.id < 1 ) {
return;
}
- if (!_this.dialog) return;
+ if (!_this.dialog) {
+ return;
+ }
_this.dialog.show(s[0].data, function() {
_this.grid.ds.load({});
});