Fix numeric control validation in nested schemas. Fixes #2241

This commit is contained in:
Harshal Dhumal 2017-03-09 15:23:18 +00:00 committed by Dave Page
parent 670c8a2cc1
commit 502c827697

View File

@ -1573,6 +1573,15 @@
this.model.errorModel.unset(name);
this.model.set(name, value);
this.listenTo(this.model, "change:" + name, this.render);
if (this.model.collection || this.model.handler) {
(this.model.collection || this.model.handler).trigger(
'pgadmin-session:model:valid', this.model, (this.model.collection || this.model.handler)
);
} else {
(this.model).trigger(
'pgadmin-session:valid', this.model.sessChanged(), this.model
);
}
} else {
if (this.model.collection || this.model.handler) {
(this.model.collection || this.model.handler).trigger(
@ -1667,6 +1676,15 @@
this.model.errorModel.unset(name);
this.model.set(name, value);
this.listenTo(this.model, "change:" + name, this.render);
if (this.model.collection || this.model.handler) {
(this.model.collection || this.model.handler).trigger(
'pgadmin-session:model:valid', this.model, (this.model.collection || this.model.handler)
);
} else {
(this.model).trigger(
'pgadmin-session:valid', this.model.sessChanged(), this.model
);
}
} else {
if (this.model.collection || this.model.handler) {
(this.model.collection || this.model.handler).trigger(