feat(web): lazy load file thumbs on tags menu
This commit is contained in:
parent
8089c6ae68
commit
53320831bb
@ -28,6 +28,14 @@ $(document).on("input", "#text-filter", function (e) {
|
|||||||
|
|
||||||
$(document).on("dblclick", ".item", function (e) {
|
$(document).on("dblclick", ".item", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
$(function () {
|
||||||
|
$(".thumb").Lazy({
|
||||||
|
scrollDirection: "vertical",
|
||||||
|
effect: "fadeIn",
|
||||||
|
visibleOnly: true,
|
||||||
|
appendScroll: $(".list")[0],
|
||||||
|
});
|
||||||
|
});
|
||||||
let id = parseInt($(this).attr("id").slice(1));
|
let id = parseInt($(this).attr("id").slice(1));
|
||||||
sappyou.every(tanzaku => {
|
sappyou.every(tanzaku => {
|
||||||
if (tanzaku.id === id) {
|
if (tanzaku.id === id) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user