1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 16:00:22 +01:00

only append hover-toggle element to first options_tab class

This commit is contained in:
undido 2014-09-26 18:08:11 -03:00
parent 1ba6003c81
commit c599bbb4bc

View File

@ -88,7 +88,7 @@ $(document).ready(function(){
$mrCheckie = $('<div><label id=\"toggle-image-hover\"><input id="toggle-hover" type=\"checkbox\"> show image on hover</label></div>'); $mrCheckie = $('<div><label id=\"toggle-image-hover\"><input id="toggle-hover" type=\"checkbox\"> show image on hover</label></div>');
$(".options_tab").append($mrCheckie); $(".options_tab:first").append($mrCheckie);
$("#toggle-hover").prop("checked", imageHover); $("#toggle-hover").prop("checked", imageHover);
$("#toggle-hover").on("click", function(){ $("#toggle-hover").on("click", function(){
if ($(this).prop("checked")){ if ($(this).prop("checked")){
@ -100,7 +100,7 @@ $(document).ready(function(){
} }
}); });
$(".options_tab").append();
$(document).on("new_post", function(e, post) { $(document).on("new_post", function(e, post) {
$(post).hover(imageEnter(),imageLeave()); $(post).hover(imageEnter(),imageLeave());