* Renamed moderator/post/dashboard to moderator/post/queue
* Fixed bug with more overlay links being out of place if news listing is closed
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
this.initialize_image_resize();
|
||||
this.initialize_titles();
|
||||
this.initialize_links();
|
||||
this.initialize_resize_links();
|
||||
}
|
||||
|
||||
Danbooru.Post.initialize_links = function() {
|
||||
@@ -20,6 +21,24 @@
|
||||
});
|
||||
}
|
||||
|
||||
Danbooru.Post.initialize_resize_links = function() {
|
||||
$("#resize-links").hide();
|
||||
|
||||
$("#resize-links a").click(function(e) {
|
||||
var image = $("#image");
|
||||
var target = $(e.target);
|
||||
image.attr("src", target.data("src"));
|
||||
image.attr("width", target.data("width"));
|
||||
image.attr("height", target.data("height"));
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#resize-link a").click(function(e) {
|
||||
$("#resize-links").toggle();
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
Danbooru.Post.initialize_titles = function() {
|
||||
$("article.post-preview").each(function(i, v) {
|
||||
Danbooru.Post.initialize_title_for(v);
|
||||
|
||||
Reference in New Issue
Block a user