From 732eaa074134276ac0df5747aeb1b490bdde7d1e Mon Sep 17 00:00:00 2001 From: mamouneyya Date: Sat, 18 Sep 2010 22:58:18 +0800 Subject: [PATCH] merge with the latest Wind theme changes --- themes/browny_admin_wind/js/ui.init.js | 6 ++++-- themes/browny_wind/js/ui.init.js | 12 ++++++++++++ themes/browny_wind/views/photo.html.php | 15 ++++++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/themes/browny_admin_wind/js/ui.init.js b/themes/browny_admin_wind/js/ui.init.js index e0210ce5..4ed912f8 100644 --- a/themes/browny_admin_wind/js/ui.init.js +++ b/themes/browny_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/browny_wind/js/ui.init.js b/themes/browny_wind/js/ui.init.js index 53b58516..2c67bf3a 100644 --- a/themes/browny_wind/js/ui.init.js +++ b/themes/browny_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 @@ -87,9 +90,18 @@ $(document).ready(function() { $(this).css("top", 0).css("left", 0); // Remove the placeholder and hover class from the item $(this).removeClass("g-hover-item"); + $(this).gallery_valign(); $("#g-place-holder").remove(); } ); + + // Realign any thumbnails that change so that when we rotate a thumb it stays centered. + $(".g-item").bind("gallery.change", function() { + $(".g-item").each(function() { + $(this).height($(this).find("img").height() + 2); + }); + $(".g-item").equal_heights().gallery_valign(); + }); } // Photo/Item item view diff --git a/themes/browny_wind/views/photo.html.php b/themes/browny_wind/views/photo.html.php index f8b5511c..b42ab987 100644 --- a/themes/browny_wind/views/photo.html.php +++ b/themes/browny_wind/views/photo.html.php @@ -4,10 +4,23 @@