diff --git a/src/UI/jQuery/jquery.validation.js b/src/UI/jQuery/jquery.validation.js
index fc5abc709..ba1f80d90 100644
--- a/src/UI/jQuery/jquery.validation.js
+++ b/src/UI/jQuery/jquery.validation.js
@@ -14,9 +14,9 @@ define(
.addClass('alert alert-danger')
.append('
' + errorMessage + '
');
- if (!validationName || validationName === "") {
+ if (!validationName || validationName === '') {
this.addFormError(error);
- return;
+ return this;
}
var input = this.find('[name]').filter(function () {
@@ -87,21 +87,19 @@ define(
$.fn.formatErrorMessage = function (error) {
var errorMessage = error.errorMessage;
- var infoLink = "";
if (error.infoLink) {
if (error.detailedDescription) {
- errorMessage += " ";
+ errorMessage += ' ';
}
else {
- errorMessage += " ";
+ errorMessage += ' ';
}
}
else if (error.detailedDescription) {
- errorMessage += " ";
+ errorMessage += ' ';
}
return errorMessage;
- }
-
+ };
});