Revert "fix: all auto fixable eslint issues (#31900)" (#32203)

This reverts commit 228180b1ef.
This commit is contained in:
Syed Ali Abbas Zaidi
2023-05-09 13:53:54 +05:00
committed by GitHub
parent 228180b1ef
commit adf879e8b2
354 changed files with 1489 additions and 1498 deletions

View File

@@ -38,7 +38,7 @@ function(HtmlUtils, BaseView, _, $, gettext, NotificationView, AlertView) {
this.clearValidationErrors();
// error is object w/ fields and error strings
for (var field in error) {
var ele = this.$el.find(`#${this.fieldToSelectorMap[field]}`);
var ele = this.$el.find('#' + this.fieldToSelectorMap[field]);
this._cacheValidationErrors.push(ele);
this.getInputElements(ele).addClass('error');
HtmlUtils.append($(ele).parent(), this.errorTemplate({message: error[field]}));
@@ -79,10 +79,10 @@ function(HtmlUtils, BaseView, _, $, gettext, NotificationView, AlertView) {
},
// these should perhaps go into a superclass but lack of event hash inheritance demotivates me
inputFocus: function(event) {
$(`label[for='${event.currentTarget.id}']`).addClass('is-focused');
$("label[for='" + event.currentTarget.id + "']").addClass('is-focused');
},
inputUnfocus: function(event) {
$(`label[for='${event.currentTarget.id}']`).removeClass('is-focused');
$("label[for='" + event.currentTarget.id + "']").removeClass('is-focused');
},
getInputElements: function(ele) {