From 33eb05ef9a2fe10062fd28ca645c5b23b8aaa1fa Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Thu, 5 Mar 2009 06:03:04 +0000 Subject: Applied jQuery UI buttons to quick edit pane. Not tested, but icons should display iin IE6 now. Rotate icons will need to be updated later. --- core/css/quick.css | 54 +------------------------------------- core/images/d8e7f3_edit_icons.png | Bin 826 -> 0 bytes core/js/quick.js | 9 +++++++ core/views/quick_pane.html.php | 28 ++++++++++---------- 4 files changed, 24 insertions(+), 67 deletions(-) delete mode 100644 core/images/d8e7f3_edit_icons.png (limited to 'core') diff --git a/core/css/quick.css b/core/css/quick.css index 326576e0..0fe634bd 100644 --- a/core/css/quick.css +++ b/core/css/quick.css @@ -15,55 +15,9 @@ } #gQuickPane a { - background-color: #333; - background-image: url(../images/d8e7f3_edit_icons.png); - background-repeat: no-repeat; cursor: pointer; - display: block; float: left; - height: 16px; - margin: 8px; - width: 16px; -} - -#gQuickPane a:hover { - background-color: #666; -} - -#gQuickPane a span { - display: none; -} - -#gQuickPane .edit { - background-position: 0 0; -} - -#gQuickPane .clockwise { - background-position: -16px 0; -} - -#gQuickPane .counter-clockwise { - background-position: -32px 0; -} - -#gQuickPane .delete { - background-position: -48px 0; -} - -#gQuickPane .move { - background-position: -64px 0; -} - -#gQuickPane .tag { - background-position: -80px 0; -} - -#gQuickPane .cover { - background-position: -96px 0; -} - -#gQuickPane .options { - background-position: -112px 0; + margin: 4px; } #gQuickPaneOptions { @@ -74,11 +28,5 @@ #gQuickPaneOptions a { display: block; - background: none; width: auto; } - -#gQuickPaneOptions a:hover { - color: #999; - background: none; -} diff --git a/core/images/d8e7f3_edit_icons.png b/core/images/d8e7f3_edit_icons.png deleted file mode 100644 index 374e1acd..00000000 Binary files a/core/images/d8e7f3_edit_icons.png and /dev/null differ diff --git a/core/js/quick.js b/core/js/quick.js index a30694b5..bfef0d65 100644 --- a/core/js/quick.js +++ b/core/js/quick.js @@ -28,6 +28,15 @@ 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"); + }, + function(){ + $(this).removeClass("ui-state-hover"); + } + ); $("#gQuickPane a:not(.options)").click(function(e) { e.preventDefault(); quick_do(cont, $(this), img); diff --git a/core/views/quick_pane.html.php b/core/views/quick_pane.html.php index a4ec4012..de5a8dcb 100644 --- a/core/views/quick_pane.html.php +++ b/core/views/quick_pane.html.php @@ -6,24 +6,24 @@ type == "album"): ?> -id") ?>" +id") ?>" title=""> - + is_photo() && graphics::can("rotate")): ?> -id/ccw?csrf=" . access::csrf_token()) ?>" +id/ccw?csrf=" . access::csrf_token()) ?>" title=""> - + -id/cw?csrf=" . access::csrf_token()) ?>" +id/cw?csrf=" . access::csrf_token()) ?>" title=""> - + @@ -36,9 +36,9 @@ type == "album"): ?> -id") ?>" +id") ?>" title=""> - + @@ -51,9 +51,9 @@ type == "album"): ?> -id?csrf=" . access::csrf_token()) ?>" +id?csrf=" . access::csrf_token()) ?>" title=""> - + @@ -65,17 +65,17 @@ type == "album"): ?> -id?csrf=" . access::csrf_token()) ?>" +id?csrf=" . access::csrf_token()) ?>" title=""> - + is_album()): ?> -"> - +"> + -- cgit v1.2.3