semicolons, semicolons everywhere
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
}
|
||||
|
||||
Danbooru.Blacklist.posts = function() {
|
||||
return $(".post-preview, #image-container")
|
||||
return $(".post-preview, #image-container");
|
||||
}
|
||||
|
||||
Danbooru.Blacklist.post_match = function(post, entry) {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
function(data) {
|
||||
var $link = $(e.target);
|
||||
var $div = $link.closest("div.comments-for-post").find(".new-comment");
|
||||
var $textarea = $div.find("textarea")
|
||||
var $textarea = $div.find("textarea");
|
||||
var msg = Danbooru.Comment.quote_message(data);
|
||||
if ($textarea.val().length > 0) {
|
||||
msg = $textarea.val() + "\n\n" + msg;
|
||||
@@ -85,7 +85,7 @@
|
||||
if (parseInt($comment.data("score")) < threshold) {
|
||||
$comment.addClass("below-threshold");
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
Danbooru.Comment.hide_threshold_comments = function(post_id) {
|
||||
@@ -96,7 +96,7 @@
|
||||
if (parseInt($comment.data("score")) < threshold) {
|
||||
$comment.hide();
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ $(function() {
|
||||
});
|
||||
|
||||
$("#hide-dmail-notice").click(function(e) {
|
||||
$dmail_notice = $("#dmail-notice")
|
||||
var $dmail_notice = $("#dmail-notice");
|
||||
$dmail_notice.hide();
|
||||
var dmail_id = $dmail_notice.data("id");
|
||||
Danbooru.Cookie.put("hide_dmail_notice", dmail_id);
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
var loc = location.href;
|
||||
|
||||
if (loc.match(/^http/)) {
|
||||
loc = loc.replace(/^https?:\/\/[^\/]+/, "")
|
||||
loc = loc.replace(/^https?:\/\/[^\/]+/, "");
|
||||
}
|
||||
|
||||
if (this.get("hide-upgrade-account") != "1") {
|
||||
|
||||
@@ -38,7 +38,7 @@ Danbooru.Note = {
|
||||
Danbooru.Note.Body.hide_all();
|
||||
e.stopPropagation();
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
$note_box.bind(
|
||||
"resize",
|
||||
@@ -238,7 +238,7 @@ Danbooru.Note = {
|
||||
} else {
|
||||
hi = x;
|
||||
}
|
||||
} while ((hi - lo) > 4)
|
||||
} while ((hi - lo) > 4);
|
||||
if ($note_body.height() > h) {
|
||||
$note_body.css("min-width", hi);
|
||||
}
|
||||
@@ -276,7 +276,7 @@ Danbooru.Note = {
|
||||
var $note_body_inner = $(e.currentTarget);
|
||||
Danbooru.Note.Edit.show($note_body_inner);
|
||||
e.stopPropagation();
|
||||
})
|
||||
});
|
||||
} else {
|
||||
$note_body.click(function(e) {
|
||||
Danbooru.notice("You must be logged in to edit notes");
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
var href = $("#search-seq-nav a[rel=next]").attr("href");
|
||||
location.href = href;
|
||||
} else {
|
||||
var href = $("#pool-nav a.active[rel=next]").attr("href")
|
||||
var href = $("#pool-nav a.active[rel=next]").attr("href");
|
||||
if (href) {
|
||||
location.href = href;
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
}
|
||||
|
||||
var $div = $("<div/>");
|
||||
$div.addClass("tag-column")
|
||||
$div.addClass("tag-column");
|
||||
if (is_wide_column) {
|
||||
$div.addClass("wide-column");
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
Danbooru.TagScript.process = function(tags, command) {
|
||||
if (command.match(/^\[if/)) {
|
||||
var match = command.match(/\[if\s+(.+?)\s*,\s*(.+?)\]/)
|
||||
var match = command.match(/\[if\s+(.+?)\s*,\s*(.+?)\]/);
|
||||
if (Danbooru.TagScript.test(tags, match[1])) {
|
||||
return Danbooru.TagScript.process(tags, match[2]);
|
||||
} else {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
Danbooru.Upload.initialize_similar = function() {
|
||||
$("#similar-button").click(function(e) {
|
||||
var old_source_name = $("#upload_source").attr("name");
|
||||
var old_file_name = $("#upload_file").attr("name")
|
||||
var old_file_name = $("#upload_file").attr("name");
|
||||
var old_action = $("#form").attr("action");
|
||||
|
||||
$("#upload_source").attr("name", "url");
|
||||
|
||||
Reference in New Issue
Block a user