summaryrefslogtreecommitdiff
path: root/themes/admin_wind/js/ui.init.js
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-10-18 10:32:08 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-10-18 10:32:08 -0600
commitc9ccc2461880de141c37c3c7a7df3b26530ce806 (patch)
treea719cc2ba974e8a020c07a92a8a7de24fb31c0f4 /themes/admin_wind/js/ui.init.js
parent08a22f4a39a1dad4b63f1303aa9cb3e758a784f3 (diff)
Moved the short_form init function to gallery.common and made it jQuery plugin. Dropped gallery.form.js. Applied short forms to server_add and tag admin pages. Added tag.css to admin views. Added .g-wide {}.
Diffstat (limited to 'themes/admin_wind/js/ui.init.js')
-rw-r--r--themes/admin_wind/js/ui.init.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/themes/admin_wind/js/ui.init.js b/themes/admin_wind/js/ui.init.js
index 0954b63c..e0210ce5 100644
--- a/themes/admin_wind/js/ui.init.js
+++ b/themes/admin_wind/js/ui.init.js
@@ -1,5 +1,6 @@
/**
* Initialize jQuery UI and Gallery Plugins
+ * @todo Move ui-corner-all assignments to theme admin views
*/
$(document).ready(function(){
@@ -22,6 +23,9 @@ $(document).ready(function(){
// Initialize modal dialogs
$(".g-dialog-link").gallery_dialog();
+ // Initialize short forms
+ $(".g-short-form").gallery_short_form();
+
// Initialize ajax links
$(".g-ajax-link").gallery_ajax();
@@ -50,13 +54,7 @@ $(document).ready(function(){
$(".g-available .g-block").addClass("ui-corner-all");
$(".g-unavailable").addClass("ui-corner-all");
- // Add hover state for buttons
- $(".ui-state-default").hover(
- function() {
- $(this).addClass("ui-state-hover");
- },
- function() {
- $(this).removeClass("ui-state-hover");
- }
- );
+ // Initialize button hover effect
+ $.fn.gallery_hover_init();
+
});