From 2fbd4c09e67b41869e559b32fd097faf46bfc990 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 9 Dec 2008 06:40:20 +0000 Subject: Checked in jQuery superfish menu plugin, applied to item options menu. Updated album/item view icons. --- themes/default/js/ui.init.js | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'themes/default/js/ui.init.js') diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index c07206bf..93994664 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -3,6 +3,18 @@ */ $("document").ready(function() { + /** + * Superfish menu options + */ + $('ul.sf-menu').superfish({ + delay: 500, + animation: { + opacity:'show', + height:'show' + }, + speed: 'fast' + }); + /** * Reduce width of sized photo if it is wider than its parent container * @@ -27,7 +39,7 @@ $("document").ready(function() { for (var i=0; i < dialogLinks.length; i++) { $(dialogLinks[i]).bind("click", {element: dialogLinks[i]}, handleDialogEvent); }; - + }); /** @@ -52,7 +64,7 @@ function handleDialogEvent(event) { * @todo Set dialog attributes dynamically (width, height, drag, resize) */ function openDialog(element) { - var url = $(element).attr("href"); + var href = $(element).attr("href"); var dialog = '
'; $("body").append(dialog); $("#gDialog").dialog({ @@ -65,11 +77,11 @@ function openDialog(element) { }, resizable: true, title: $(element).attr("title"), - width: '500px', + width: '500px' }); - $("#gDialog").html(url); - $.get(url, function(data) { + $("#gDialog").html(href); + $.get(href, function(data) { $("#gDialog").html(data); - }); + }); return false; } -- cgit v1.2.3