mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-09 23:15:58 -06:00
Clear the status-bar on the 'on-status-clear' event of the model
This commit is contained in:
parent
7358549524
commit
9d9f17c163
@ -118,9 +118,15 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, Backform) {
|
||||
info = this.getTreeNodeHierarchy.apply(this, [item]),
|
||||
groups = Backform.generateViewSchema(info, newModel, type, this, node);
|
||||
|
||||
if (type == 'create' || type == 'edit'){
|
||||
newModel.on('on-status', function(e){
|
||||
that.statusBar.html(e.msg);
|
||||
if (type == 'create' || type == 'edit') {
|
||||
newModel.on('on-status', function(e) {
|
||||
if(!_.isUndefined(that.statusBar)) {
|
||||
that.statusBar.html(e.msg);
|
||||
}
|
||||
}).on('on-status-clear', function(e) {
|
||||
if(!_.isUndefined(that.statusBar)) {
|
||||
that.statusBar.empty();
|
||||
}
|
||||
});
|
||||
}
|
||||
// 'schema' has the information about how to generate the form.
|
||||
|
Loading…
Reference in New Issue
Block a user