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() { Danbooru.Blacklist.posts = function() {
return $(".post-preview, #image-container") return $(".post-preview, #image-container");
} }
Danbooru.Blacklist.post_match = function(post, entry) { Danbooru.Blacklist.post_match = function(post, entry) {

View File

@@ -28,7 +28,7 @@
function(data) { function(data) {
var $link = $(e.target); var $link = $(e.target);
var $div = $link.closest("div.comments-for-post").find(".new-comment"); 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); var msg = Danbooru.Comment.quote_message(data);
if ($textarea.val().length > 0) { if ($textarea.val().length > 0) {
msg = $textarea.val() + "\n\n" + msg; msg = $textarea.val() + "\n\n" + msg;
@@ -85,7 +85,7 @@
if (parseInt($comment.data("score")) < threshold) { if (parseInt($comment.data("score")) < threshold) {
$comment.addClass("below-threshold"); $comment.addClass("below-threshold");
} }
}) });
} }
Danbooru.Comment.hide_threshold_comments = function(post_id) { Danbooru.Comment.hide_threshold_comments = function(post_id) {
@@ -96,7 +96,7 @@
if (parseInt($comment.data("score")) < threshold) { if (parseInt($comment.data("score")) < threshold) {
$comment.hide(); $comment.hide();
} }
}) });
} }
})(); })();

View File

@@ -17,7 +17,7 @@ $(function() {
}); });
$("#hide-dmail-notice").click(function(e) { $("#hide-dmail-notice").click(function(e) {
$dmail_notice = $("#dmail-notice") var $dmail_notice = $("#dmail-notice");
$dmail_notice.hide(); $dmail_notice.hide();
var dmail_id = $dmail_notice.data("id"); var dmail_id = $dmail_notice.data("id");
Danbooru.Cookie.put("hide_dmail_notice", dmail_id); Danbooru.Cookie.put("hide_dmail_notice", dmail_id);

View File

@@ -47,7 +47,7 @@
var loc = location.href; var loc = location.href;
if (loc.match(/^http/)) { if (loc.match(/^http/)) {
loc = loc.replace(/^https?:\/\/[^\/]+/, "") loc = loc.replace(/^https?:\/\/[^\/]+/, "");
} }
if (this.get("hide-upgrade-account") != "1") { if (this.get("hide-upgrade-account") != "1") {

View File

@@ -38,7 +38,7 @@ Danbooru.Note = {
Danbooru.Note.Body.hide_all(); Danbooru.Note.Body.hide_all();
e.stopPropagation(); e.stopPropagation();
} }
) );
$note_box.bind( $note_box.bind(
"resize", "resize",
@@ -238,7 +238,7 @@ Danbooru.Note = {
} else { } else {
hi = x; hi = x;
} }
} while ((hi - lo) > 4) } while ((hi - lo) > 4);
if ($note_body.height() > h) { if ($note_body.height() > h) {
$note_body.css("min-width", hi); $note_body.css("min-width", hi);
} }
@@ -276,7 +276,7 @@ Danbooru.Note = {
var $note_body_inner = $(e.currentTarget); var $note_body_inner = $(e.currentTarget);
Danbooru.Note.Edit.show($note_body_inner); Danbooru.Note.Edit.show($note_body_inner);
e.stopPropagation(); e.stopPropagation();
}) });
} else { } else {
$note_body.click(function(e) { $note_body.click(function(e) {
Danbooru.notice("You must be logged in to edit notes"); 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"); var href = $("#search-seq-nav a[rel=next]").attr("href");
location.href = href; location.href = href;
} else { } else {
var href = $("#pool-nav a.active[rel=next]").attr("href") var href = $("#pool-nav a.active[rel=next]").attr("href");
if (href) { if (href) {
location.href = href; location.href = href;
} }

View File

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

View File

@@ -26,7 +26,7 @@
Danbooru.TagScript.process = function(tags, command) { Danbooru.TagScript.process = function(tags, command) {
if (command.match(/^\[if/)) { 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])) { if (Danbooru.TagScript.test(tags, match[1])) {
return Danbooru.TagScript.process(tags, match[2]); return Danbooru.TagScript.process(tags, match[2]);
} else { } else {

View File

@@ -28,7 +28,7 @@
Danbooru.Upload.initialize_similar = function() { Danbooru.Upload.initialize_similar = function() {
$("#similar-button").click(function(e) { $("#similar-button").click(function(e) {
var old_source_name = $("#upload_source").attr("name"); 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"); var old_action = $("#form").attr("action");
$("#upload_source").attr("name", "url"); $("#upload_source").attr("name", "url");