js, css: fix eslint and stylelint warnings.

This commit is contained in:
evazion
2020-06-09 01:28:11 -05:00
parent b1f22df4ab
commit 38f385d1ca
5 changed files with 9 additions and 7 deletions

View File

@@ -303,7 +303,7 @@ Post.initialize_favlist = function() {
Post.view_original = function(e) {
if (Utility.test_max_width(660)) {
// Do the default behavior (navigate to image)
return;
return false;
}
var $image = $("#image");
@@ -322,7 +322,7 @@ Post.view_original = function(e) {
Post.view_large = function(e) {
if (Utility.test_max_width(660)) {
// Do the default behavior (navigate to image)
return;
return false;
}
var $image = $("#image");
@@ -458,7 +458,7 @@ Post.update = async function(post_id, mode, params) {
Post.pending_update_count -= 1;
Post.show_pending_update_notice();
} catch(err) {
} catch (err) {
Post.pending_update_count -= 1;
}
}

View File

@@ -1,4 +1,3 @@
import Post from './posts.js.erb'
import Shortcuts from './shortcuts.js';
import Utility from './utility.js';
import Dropzone from 'dropzone';
@@ -6,7 +5,8 @@ import SparkMD5 from 'spark-md5';
let Upload = {};
Upload.MAX_FILE_SIZE = <%= Danbooru.config.max_file_size.to_json %> / (1024 * 1024);
Upload.MAX_FILE_SIZE_BYTES = <%= Danbooru.config.max_file_size.to_json %>;
Upload.MAX_FILE_SIZE = Upload.MAX_FILE_SIZE_BYTES / (1024 * 1024);
Upload.IQDB_LIMIT = 5;
Upload.IQDB_MIN_SIMILARITY = 50;
Upload.IQDB_HIGH_SIMILARITY = 70;