if(typeof(_this.data) != 'undefined'){
_this.grid.footer.onClick('first');
}
+
+ if (!_this.grid.getSelectionModel().getSelected()) {
+ _this.source = '';
+ _this.viewPanel.setContent("Please select a version on the left");
+ }
+
+
+
}
},
background : false,
{
var selected = this.getSelected();
- if (!selected) {
- _this.viewPanel.setContent("Nothing Selected");
- return;
- }
-
_this.viewPanel.load( { url : baseURL + "/Roo/Events", method : 'GET' }, {_id : selected.data.id, _retrieve_source : 1}, function(oElement, bSuccess, oResponse){
_this.source = '';
var d = Roo.apply({}, _this.data);
delete d.successFn;
-
+
Roo.apply(o.params, d);
}
_this.dialog.hide();
- if (_this.callback) {
+ if (_this.callback && _this.source != '') {
_this.callback.call(this, _this.source);
}
}