Fixed linting issues, used single quotes instead of double quotes for strings

This commit is contained in:
Mark McDowall 2014-07-09 14:06:22 -07:00
parent 9a92815cbf
commit 62bfdcab3c
1 changed files with 6 additions and 8 deletions

View File

@ -14,9 +14,9 @@ define(
.addClass('alert alert-danger')
.append('<div><i class="icon-exclamation-sign"></i>' + errorMessage + '</div>');
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 += " <a class=\"no-router\" target=\"_blank\" href=\"" + error.infoLink + "\"><i class=\"icon-external-link\" title=\"" + error.detailedDescription + "\"></i></a>";
errorMessage += ' <a class="no-router" target="_blank" href="' + error.infoLink + '"><i class="icon-external-link" title="' + error.detailedDescription + '"></i></a>';
}
else {
errorMessage += " <a class=\"no-router\" target=\"_blank\" href=\"" + error.infoLink + "\"><i class=\"icon-external-link\"></i></a>";
errorMessage += ' <a class="no-router" target="_blank" href="' + error.infoLink + '"><i class="icon-external-link"></i></a>';
}
}
else if (error.detailedDescription) {
errorMessage += " <i class=\"icon-nd-form-info\" title=\"" + error.detailedDescription + "\"></i>";
errorMessage += ' <i class="icon-nd-form-info" title="' + error.detailedDescription + '"></i>';
}
return errorMessage;
}
};
});