Kill trailing whitespaces in javascript files
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
(function() {
|
||||
Danbooru.Favorite = {};
|
||||
|
||||
|
||||
Danbooru.Favorite.initialize_all = function() {
|
||||
if ($("#c-posts").length) {
|
||||
this.hide_or_show_add_to_favorites_link();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Danbooru.Favorite.hide_or_show_add_to_favorites_link = function() {
|
||||
var favorites = Danbooru.meta("favorites");
|
||||
var current_user_id = Danbooru.meta("current-user-id");
|
||||
@@ -19,13 +19,13 @@
|
||||
if ((favorites != undefined) && (favorites.match(regexp))) {
|
||||
$("#add-to-favorites").hide();
|
||||
} else {
|
||||
$("#remove-from-favorites").hide();
|
||||
$("#remove-from-favorites").hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Danbooru.Favorite.create = function(post_id) {
|
||||
Danbooru.Post.notice_update("inc");
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/favorites",
|
||||
@@ -40,10 +40,10 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Danbooru.Favorite.destroy = function(post_id) {
|
||||
Danbooru.Post.notice_update("inc");
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "DELETE",
|
||||
url: "/favorites/" + post_id,
|
||||
|
||||
Reference in New Issue
Block a user