Address eslint complaints
This commit is contained in:
committed by
Kshitij Sobti
parent
cc8f36a94f
commit
df09765ee1
@@ -45,9 +45,11 @@
|
||||
},
|
||||
error: function(self, response) {
|
||||
if (response.responseJSON && response.responseJSON.error) {
|
||||
self.errorMessage = response.responseJSON.error || ''; // eslint-disable-line no-param-reassign
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
self.errorMessage = response.responseJSON.error || '';
|
||||
} else {
|
||||
self.errorMessage = ''; // eslint-disable-line no-param-reassign
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
self.errorMessage = '';
|
||||
}
|
||||
|
||||
self.trigger('error');
|
||||
@@ -73,7 +75,8 @@
|
||||
},
|
||||
error: function(self, response) {
|
||||
if (response.responseJSON && response.responseJSON.error) {
|
||||
self.errorMessage = response.responseJSON.error || ''; // eslint-disable-line no-param-reassign
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
self.errorMessage = response.responseJSON.error || '';
|
||||
} else {
|
||||
self.errorMessage = ''; // eslint-disable-line no-param-reassign
|
||||
}
|
||||
|
||||
@@ -93,7 +93,11 @@
|
||||
},
|
||||
|
||||
showErrorMessage: function() {
|
||||
HtmlUtils.setHtml(this.$el, HtmlUtils.template(this.errorTemplate)({errorMessage: this.collection.errorMessage}));
|
||||
HtmlUtils.setHtml(
|
||||
this.$el,
|
||||
HtmlUtils.template(this.errorTemplate)({
|
||||
errorMessage: this.collection.errorMessage
|
||||
}));
|
||||
this.showResults();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user