js: drop jquery-timeout plugin.

Replace with `Danbooru.Utility.delay`.
This commit is contained in:
evazion
2019-08-14 01:46:44 -05:00
parent d812020030
commit e000bdb861
4 changed files with 10 additions and 54 deletions

View File

@@ -1,8 +1,5 @@
$("#add-to-favorites, #add-fav-button, #remove-from-favorites, #remove-fav-button").toggle();
$("#remove-fav-button").addClass("animate");
$.timeout(30000, function() {
$("#remove-fav-button").removeClass("animate");
});
$("#score-for-post-<%= @post.id %>").text(<%= @post.score %>);
$("#favcount-for-post-<%= @post.id %>").text(<%= @post.fav_count %>);
$(".fav-buttons").toggleClass("fav-buttons-false").toggleClass("fav-buttons-true");