Cleanup some inconsistent error dialog titles. Fixes #2098

This commit is contained in:
Murtuza Zabuawala
2017-12-01 15:38:59 +00:00
committed by Dave Page
parent 7e419d1bfe
commit bac9c77c4e
7 changed files with 42 additions and 15 deletions

View File

@@ -380,7 +380,10 @@ TODO LIST FOR BACKUP:
if (pgBrowser.tree.hasParent(i)) {
i = $(pgBrowser.tree.parent(i));
} else {
alertify.alert(gettext("Please select server or child node from the browser tree."));
alertify.alert(
gettext("Backup Error"),
gettext("Please select server or child node from the browser tree.")
);
break;
}
}
@@ -407,7 +410,10 @@ TODO LIST FOR BACKUP:
return;
}
} else {
alertify.alert(S(gettext('Failed to load preference %s of module %s')).sprintf(preference_name, module).value());
alertify.alert(
gettext('Backup Error'),
S(gettext('Failed to load preference %s of module %s')).sprintf(preference_name, module).value()
);
return;
}
@@ -595,7 +601,10 @@ TODO LIST FOR BACKUP:
if (pgBrowser.tree.hasParent(i)) {
i = $(pgBrowser.tree.parent(i));
} else {
alertify.alert(gettext("Please select server or child node from tree."));
alertify.alert(
gettext("Backup Error"),
gettext("Please select server or child node from tree.")
);
break;
}
}
@@ -618,11 +627,14 @@ TODO LIST FOR BACKUP:
if(preference) {
if (!preference.value) {
alertify.alert(msg);
alertify.alert(gettext('Configuration required'), msg);
return;
}
} else {
alertify.alert(S(gettext('Failed to load preference %s of module %s')).sprintf(preference_name, module).value());
alertify.alert(
gettext('Backup Error'),
S(gettext('Failed to load preference %s of module %s')).sprintf(preference_name, module).value()
);
return;
}