From a57d0d93a8c741e64ac18bbb36aad4164569f266 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 31 Mar 2009 05:14:40 +0000 Subject: Add quick edit pane to resize images, ticket #189 --- core/js/quick.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/js/quick.js') diff --git a/core/js/quick.js b/core/js/quick.js index bfef0d65..15297c03 100644 --- a/core/js/quick.js +++ b/core/js/quick.js @@ -3,8 +3,8 @@ $(document).ready(function() { // @todo Add quick edit pane for album (meta, move, permissions, delete) $(".gItem").hover(show_quick, function() {}); } - if ($("#gItem").length) { - // @todo Apply quick edit to resize view + if ($("#gPhoto").length) { + $("#gPhoto").hover(show_quick, function() {}); } }); @@ -19,8 +19,9 @@ var show_quick = function() { "position": "absolute", "top": pos.top, "left": pos.left, + "text-align": "center", "width": cont.innerWidth() + 1, - "height": 32 + "height": "auto" }).hide(); cont.hover(function() {}, hide_quick); $.get( @@ -28,7 +29,6 @@ var show_quick = function() { {}, function(data, textStatus) { $("#gQuickPane").html(data).slideDown("fast"); - // @todo Move hover to a function $(".ui-state-default").hover( function(){ $(this).addClass("ui-state-hover"); -- cgit v1.2.3