semicolons, semicolons everywhere

This commit is contained in:
Toks
2013-06-19 20:04:14 -04:00
parent 5ae6694bce
commit b7b00f53b4
9 changed files with 13 additions and 13 deletions

View File

@@ -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) {

View File

@@ -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();
}
})
});
}
})();

View File

@@ -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);

View File

@@ -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") {

View File

@@ -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");

View File

@@ -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;
}

View File

@@ -161,7 +161,7 @@
}
var $div = $("<div/>");
$div.addClass("tag-column")
$div.addClass("tag-column");
if (is_wide_column) {
$div.addClass("wide-column");
}

View File

@@ -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 {

View File

@@ -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");