summaryrefslogtreecommitdiff
path: root/js/pomf.js
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-10-11 18:21:51 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-10-11 18:21:51 +0200
commit7bb7029eb356dfc769cf71d40a9d5b31cafa6f53 (patch)
tree7d0963292f09ed6785caf9fde8873bc43eb69574 /js/pomf.js
parent6d93e72a544440d7c4cb0609cf6a3dc0f801f5f4 (diff)
parent575b78b9d679db2243083f9ecc8b1543b2a1af02 (diff)
Merge branch 'eslint-id-length' into fix-eslint-warnings-2
Fixes ESLint id-length warnings. An exception is given to var "i", because Airbnb's style guide says this is OK. A bug is in eslint-config-airbnb, which the Airbnb style guide authors have not as of today accepted to merge to fix the bug. var "$" will be fixed later.
Diffstat (limited to 'js/pomf.js')
-rw-r--r--js/pomf.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/js/pomf.js b/js/pomf.js
index a108c4b..0e2ecee 100644
--- a/js/pomf.js
+++ b/js/pomf.js
@@ -36,20 +36,20 @@ $(function() {
$uploadBtn.cabinet($uploadInput);
- $uploadBtn.on('dragenter', function(e) {
- if (this === e.target) {
+ $uploadBtn.on('dragenter', function(evt) {
+ if (this === evt.target) {
$(this).addClass('drop');
$btnContent = $(this).html();
$(this).html('Drop it here~');
}
});
- $uploadBtn.on('drop', function(e) {
+ $uploadBtn.on('drop', function() {
$(this).trigger('dragleave');
});
- $uploadBtn.on('dragleave', function(e) {
- var node = e.target;
+ $uploadBtn.on('dragleave', function(evt) {
+ var node = evt.target;
do {
if (node === this) {
$(this).removeClass('drop');
@@ -92,7 +92,7 @@ $(function() {
return $rowItem;
};
- $uploadBtn.on('change', function(e) {
+ $uploadBtn.on('change', function() {
$uploadFiles.empty().removeClass('error completed');
var files = $uploadInput[0].filelist;
@@ -127,7 +127,7 @@ $(function() {
});
};
- up.on('uploadprogress', function(e, files) {
+ up.on('uploadprogress', function(evt, files) {
eachRow(files, function(row, file, files) {
$('.progress-inner', row).width((file.percentUploaded * 100) + '%');
});
@@ -135,13 +135,13 @@ $(function() {
$('.progress-inner', totalRow).width((files.percentUploaded * 100) + '%');
});
- up.on('uploadcomplete', function(e) {
+ up.on('uploadcomplete', function() {
$('.progress-inner').width('100%');
$totalName.html('Grabbing URLs&hellip;');
});
- up.on('load', function(e, response) {
- switch (e.target.status) {
+ up.on('load', function(evt, response) {
+ switch (evt.target.status) {
case 200:
var res = JSON.parse(response);
if (!res.success) {
@@ -150,7 +150,7 @@ $(function() {
break;
}
- eachRow(res.files, function(row, file, files) {
+ eachRow(res.files, function(row, file) {
var $link = $('<a>');
$link.attr('href', file.url)