[js] Fix a ReferenceError in cubicweb.preferences.js
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 03 Dec 2015 10:12:37 +0100
changeset 10988 f1f7331bef84
parent 10987 a945fe89b33f
child 10989 e0572a786e6b
[js] Fix a ReferenceError in cubicweb.preferences.js Rename function using proper English along the way. Closes #8864731.
web/data/cubicweb.preferences.js
--- 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;
 }