Validate the model on save.

This commit is contained in:
Seçkin Alan 2016-04-14 21:51:07 +01:00 committed by Dave Page
parent 290e6949f8
commit 7b344185b4

View File

@ -851,7 +851,7 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
if (d && !_.isEmpty(d)) {
m.save({}, {
attrs: d,
validate: false,
validate: true,
cache: false,
success: function() {
onSaveFunc.call();
@ -860,7 +860,7 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
Alertify.pgNotifier(
"error", jqxhr,
S(
"{{ _("Error during saving properties - %%s!") }}"
"{{ _("Error during saving properties: %%s!") }}"
).sprintf(jqxhr.statusText).value()
);
}