Adjusted CSS id.

This commit is contained in:
LarsDW223
2016-05-09 18:35:58 +02:00
parent ea05a3a5c6
commit 4366c8ab3f

View File

@@ -29,8 +29,8 @@ jQuery(function () {
} else { } else {
c = ""; c = "";
} }
jQuery("body").append("<p id='__filelist_preview'><img src='" + this.src + "' alt='Image preview' />" + c + "</p>"); jQuery("body").append("<p id='plugin__filelist_preview'><img src='" + this.src + "' alt='Image preview' />" + c + "</p>");
jQuery("#__filelist_preview") jQuery("#plugin__filelist_preview")
.css("top", (e.pageY - xOffset) + "px") .css("top", (e.pageY - xOffset) + "px")
.css("left", (e.pageX + yOffset) + "px") .css("left", (e.pageX + yOffset) + "px")
.css("max-width", "300px") .css("max-width", "300px")
@@ -39,10 +39,10 @@ jQuery(function () {
.fadeIn("fast"); .fadeIn("fast");
}, function () { }, function () {
this.title = this.t; this.title = this.t;
jQuery("#__filelist_preview").remove(); jQuery("#plugin__filelist_preview").remove();
}); });
jQuery("img.filelist_preview").mousemove(function (e) { jQuery("img.filelist_preview").mousemove(function (e) {
jQuery("#__filelist_preview") jQuery("#plugin__filelist_preview")
.css("top", (e.pageY - xOffset) + "px") .css("top", (e.pageY - xOffset) + "px")
.css("left", (e.pageX + yOffset) + "px") .css("left", (e.pageX + yOffset) + "px")
.css("position", "absolute"); .css("position", "absolute");