From 36cda412f48ada1a059523685094687b9c02f3b8 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Sun, 7 Dec 2008 04:49:26 +0000 Subject: First go around at reusable modal dialogs. Moved jQuery UI CSS into screen.css, moved default theme JS to js folder. Named jQuery UI files to match the file names as they distribute them. Removed accordion, it's not used yet. --- themes/default/jquery/jquery.ui.init.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 themes/default/jquery/jquery.ui.init.js (limited to 'themes/default/jquery/jquery.ui.init.js') diff --git a/themes/default/jquery/jquery.ui.init.js b/themes/default/jquery/jquery.ui.init.js deleted file mode 100644 index 1806cb10..00000000 --- a/themes/default/jquery/jquery.ui.init.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Initialize UI elements - * - * @todo Write helpers to grab all jQuery UI components by class and initialize - */ - -$("document").ready(function() { - - /** - * Reset width of sized photos wider than their - * parent container so that they fit - */ - if ($("#gItem").length) { - var containerWidth = $("#gItem").width(); - var oPhoto = $("#gItem img").filter(function() { - return this.id.match(/gPhotoID-/); - }) - if (containerWidth < oPhoto.width()) { - var proportion = containerWidth / oPhoto.width(); - oPhoto.width(containerWidth); - oPhoto.height(proportion * oPhoto.height()); - } - } - -}); -- cgit v1.2.3