mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 09:44:28 +01:00
only append hover-toggle element to first options_tab class
This commit is contained in:
parent
1ba6003c81
commit
c599bbb4bc
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user