From 4366c8ab3fe78fc5133f9f64f74d8a212f29b560 Mon Sep 17 00:00:00 2001 From: LarsDW223 Date: Mon, 9 May 2016 18:35:58 +0200 Subject: [PATCH] Adjusted CSS id. --- script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script.js b/script.js index 2645b14..001241a 100644 --- a/script.js +++ b/script.js @@ -29,8 +29,8 @@ jQuery(function () { } else { c = ""; } - jQuery("body").append("

Image preview" + c + "

"); - jQuery("#__filelist_preview") + jQuery("body").append("

Image preview" + c + "

"); + jQuery("#plugin__filelist_preview") .css("top", (e.pageY - xOffset) + "px") .css("left", (e.pageX + yOffset) + "px") .css("max-width", "300px") @@ -39,10 +39,10 @@ jQuery(function () { .fadeIn("fast"); }, function () { this.title = this.t; - jQuery("#__filelist_preview").remove(); + jQuery("#plugin__filelist_preview").remove(); }); jQuery("img.filelist_preview").mousemove(function (e) { - jQuery("#__filelist_preview") + jQuery("#plugin__filelist_preview") .css("top", (e.pageY - xOffset) + "px") .css("left", (e.pageX + yOffset) + "px") .css("position", "absolute");