summaryrefslogtreecommitdiff
path: root/modules/gallery/js/quick.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/js/quick.js')
-rw-r--r--modules/gallery/js/quick.js18
1 files changed, 5 insertions, 13 deletions
diff --git a/modules/gallery/js/quick.js b/modules/gallery/js/quick.js
index 4ebdac47..3ac97f8e 100644
--- a/modules/gallery/js/quick.js
+++ b/modules/gallery/js/quick.js
@@ -11,18 +11,10 @@ $(document).ready(function() {
var show_quick = function() {
var cont = $(this);
var quick = $(this).find(".gQuick");
+ var img = cont.find(".gThumbnail,.gResize");
$("#gQuickPane").remove();
cont.append("<div id=\"gQuickPane\"></div>");
- var img = cont.find(".gThumbnail,.gResize");
- var pos = cont.position();
- $("#gQuickPane").css({
- "position": "absolute",
- "top": pos.top,
- "left": pos.left,
- "text-align": "center",
- "width": cont.innerWidth() + 1,
- "height": "auto"
- }).hide();
+ $("#gQuickPane").hide();
cont.hover(function() {}, hide_quick);
$.get(
quick.attr("href"),
@@ -30,10 +22,10 @@ var show_quick = function() {
function(data, textStatus) {
$("#gQuickPane").html(data).slideDown("fast");
$(".ui-state-default").hover(
- function(){
+ function() {
$(this).addClass("ui-state-hover");
},
- function(){
+ function() {
$(this).removeClass("ui-state-hover");
}
);
@@ -54,7 +46,7 @@ var quick_do = function(cont, pane, img) {
return false;
}
if (pane.hasClass("gDialogLink")) {
- openDialog(pane, function() { window.location.reload(); });
+ openDialog(pane);
} else {
img.css("opacity", "0.1");
cont.addClass("gLoadingLarge");