From 1240878df0f4a2b0ad0cdb32814717038ff2773f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 14 May 2010 16:55:15 -0700 Subject: Fix-ups for d98b85f7d3142676e6b4f407a18ed81564823f88 - Pass the CSS selector of the active image in as an arg to site_menu so that quick operations know what they're operating on. - Change the ids from g-{photo,movie}-id to the generic g-item-id - Initialize ajax handlers for site menu on the photo and movie page - Drop the movie context menu, it's now in the site menu --- themes/wind/js/ui.init.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'themes/wind/js/ui.init.js') diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js index 6edf6be4..53b58516 100644 --- a/themes/wind/js/ui.init.js +++ b/themes/wind/js/ui.init.js @@ -108,6 +108,9 @@ $(document).ready(function() { duration: 1000, hash: true }); + + $(this).find(".g-dialog-link").gallery_dialog(); + $(this).find(".g-ajax-link").gallery_ajax(); } // Initialize button hover effect -- cgit v1.2.3 From 1783c046924b1c54116dc626e5b50078780ca9c5 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 20 Jun 2010 11:15:53 -0700 Subject: Remove the title attribute for menus using JS since we're showing that text anyway. This may be turn into an accessibility issue, but it's pretty annoying to have a tooltip show up with the text in it. --- themes/admin_wind/js/ui.init.js | 6 ++++-- themes/wind/js/ui.init.js | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'themes/wind/js/ui.init.js') diff --git a/themes/admin_wind/js/ui.init.js b/themes/admin_wind/js/ui.init.js index e0210ce5..4ed912f8 100644 --- a/themes/admin_wind/js/ui.init.js +++ b/themes/admin_wind/js/ui.init.js @@ -4,7 +4,7 @@ */ $(document).ready(function(){ - + // Initialize Superfish menus $("#g-site-admin-menu .g-menu").hide().addClass("sf-menu"); $("#g-site-admin-menu .g-menu").superfish({ @@ -54,7 +54,9 @@ $(document).ready(function(){ $(".g-available .g-block").addClass("ui-corner-all"); $(".g-unavailable").addClass("ui-corner-all"); + // Remove titles for menu options since we're displaying that text anyway + $(".sf-menu a, .sf-menu li").removeAttr("title"); + // Initialize button hover effect $.fn.gallery_hover_init(); - }); diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js index 53b58516..a4fc0e2f 100644 --- a/themes/wind/js/ui.init.js +++ b/themes/wind/js/ui.init.js @@ -43,6 +43,9 @@ $(document).ready(function() { }); } + // Remove titles for menu options since we're displaying that text anyway + $(".sf-menu a, .sf-menu li").removeAttr("title"); + // Album and search results views if ($("#g-album-grid").length) { // Set equal height for album items and vertically align thumbnails/metadata -- cgit v1.2.3