summaryrefslogtreecommitdiff
path: root/themes/default/jquery/jquery.ui.init.js
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2008-12-07 04:49:26 +0000
committerChad Kieffer <chad@2tbsp.com>2008-12-07 04:49:26 +0000
commit36cda412f48ada1a059523685094687b9c02f3b8 (patch)
tree4ee21dd6d100a2b239352a56230e04bd8dba986b /themes/default/jquery/jquery.ui.init.js
parent9bfeb413abce88d9f47a819dea24d8526ec45a80 (diff)
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.
Diffstat (limited to 'themes/default/jquery/jquery.ui.init.js')
-rw-r--r--themes/default/jquery/jquery.ui.init.js25
1 files changed, 0 insertions, 25 deletions
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());
- }
- }
-
-});