summaryrefslogtreecommitdiff
path: root/core/js/quick.js
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-02-08 00:42:17 +0000
committerBharat Mediratta <bharat@menalto.com>2009-02-08 00:42:17 +0000
commit7ebbe189d4a6955532fb17f4cb9466115279ca35 (patch)
tree22d9c328815d15ddd53ec8120f02071c255e83bf /core/js/quick.js
parentd9b4d96c670187aab0c7f37477da3f0c7a628767 (diff)
Implement the "additional options" part of the quick menu. It's only
for albums, because we don't currently have additional options for photos yet.
Diffstat (limited to 'core/js/quick.js')
-rw-r--r--core/js/quick.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/js/quick.js b/core/js/quick.js
index 881c7656..a30694b5 100644
--- a/core/js/quick.js
+++ b/core/js/quick.js
@@ -1,7 +1,6 @@
$(document).ready(function() {
if ($("#gAlbumGrid").length) {
// @todo Add quick edit pane for album (meta, move, permissions, delete)
- //$("#gInfo").hover(show_quick, function() {});
$(".gItem").hover(show_quick, function() {});
}
if ($("#gItem").length) {
@@ -29,10 +28,14 @@ var show_quick = function() {
{},
function(data, textStatus) {
$("#gQuickPane").html(data).slideDown("fast");
- $("#gQuickPane a").click(function(e) {
+ $("#gQuickPane a:not(.options)").click(function(e) {
e.preventDefault();
quick_do(cont, $(this), img);
});
+ $("#gQuickPane a.options").click(function(e) {
+ e.preventDefault();
+ $("#gQuickPaneOptions").slideToggle("fast");
+ });
}
);
};