_this.grid.footer.onClick('first');
}
- _this.source = '';
+ if (!_this.grid.getSelectionModel().getSelected()) {
+ _this.source = '';
+ _this.viewPanel.setContent("Please select a version on the left");
+ }
+
- _this.viewPanel.setContent("");
}
},
_this.dialog.hide();
- if (_this.callback) {
+ if (_this.callback && _this.source != '') {
_this.callback.call(this, _this.source);
}
}