jenkins-bot has submitted this change and it was merged.
Change subject: Fix jslint errors
......................................................................
Fix jslint errors
Bug: T63626
Change-Id: I39a5c449e32eff3f6783e93cc75b71018763b31a
---
M modules/ext.securepoll.htmlform.js
M resources/SecurePoll.js
2 files changed, 5 insertions(+), 3 deletions(-)
Approvals:
Hashar: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/ext.securepoll.htmlform.js
b/modules/ext.securepoll.htmlform.js
index 262d61f..c70efbb 100644
--- a/modules/ext.securepoll.htmlform.js
+++ b/modules/ext.securepoll.htmlform.js
@@ -85,7 +85,7 @@
cells[i] = {};
}
if ( !cells[i].label ) {
- cells[i].label = $( '<th>' )
+ cells[i].label = $( '<th>' );
cells[i].label.data(
'securepollColNum', i )
.text( i );
}
diff --git a/resources/SecurePoll.js b/resources/SecurePoll.js
index ca7ad7d..ec9e606 100644
--- a/resources/SecurePoll.js
+++ b/resources/SecurePoll.js
@@ -1,7 +1,9 @@
+/*jshint -W083 */
+
function securepoll_strike_popup(e, action, id) {
var pop = document.getElementById('securepoll-popup');
- var e = window.event || e;
+ e = window.event || e;
if(!e) return;
var target = e.target || e.srcElement;
if(!target) return;
@@ -112,7 +114,7 @@
}
popupButton.onclick = function ( event ) {
securepoll_strike_popup( event, action == 'strike' ? 'unstrike'
: 'strike', voteId );
- }
+ };
}
function securepoll_ballot_setup() {
--
To view, visit https://gerrit.wikimedia.org/r/271481
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I39a5c449e32eff3f6783e93cc75b71018763b31a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: JanZerebecki <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits