diff options
author | Chad Kieffer <chad@2tbsp.com> | 2009-03-31 05:14:40 +0000 |
---|---|---|
committer | Chad Kieffer <chad@2tbsp.com> | 2009-03-31 05:14:40 +0000 |
commit | a57d0d93a8c741e64ac18bbb36aad4164569f266 (patch) | |
tree | ada30e528c19bbe80d3097d3437846a479f7d4a5 /core/js/quick.js | |
parent | 9f04fef3e046d7b4778ddf449589c9b1a3a67857 (diff) |
Add quick edit pane to resize images, ticket #189
Diffstat (limited to 'core/js/quick.js')
-rw-r--r-- | core/js/quick.js | 8 |
1 files changed, 4 insertions, 4 deletions
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"); |