[js] Fix a ReferenceError in cubicweb.preferences.js
Rename function using proper English along the way.
Closes #8864731.
--- a/web/data/cubicweb.preferences.js Mon Dec 14 14:55:10 2015 +0100
+++ b/web/data/cubicweb.preferences.js Thu Dec 03 10:12:37 2015 +0100
@@ -45,7 +45,7 @@
function validatePrefsForm(formid) {
clearPreviousMessages();
_clearPreviousErrors(formid);
- return validateForm(formid, null, submitSucces, submitFailure);
+ return validateForm(formid, null, submitSuccess, submitFailure);
}
function submitFailure(result, formid, cbargs) {
@@ -59,13 +59,13 @@
return false; // so handleFormValidationResponse doesn't try to display error
}
-function submitSucces(result, formid, cbargs) {
+function submitSuccess(result, formid, cbargs) {
var $form = jQuery('#' + formid);
setCurrentValues($form);
var dom = DIV({'class': 'msg'}, _("changes applied"));
$form.find('div.formsg').empty().append(dom);
$form.find('input').removeClass('changed');
- checkValues(form, true);
+ checkValues($form, true);
return;
}