summaryrefslogtreecommitdiff
path: root/themes/admin_wind/js/ui.init.js
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-19 06:27:18 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-19 06:27:18 -0700
commit1b530e4680b09391d7f99e91f1b0b1eb6b2069fc (patch)
tree9beee9ad047c5efa41dae7f64a0195b304770b61 /themes/admin_wind/js/ui.init.js
parent9a6a404a3239c964528b501d3c187ead84b1f7a0 (diff)
parentb2d0b3ebbb1764593e387a2e07e0d4e67f4f5474 (diff)
Merge branch 'master' into talmdal_dev
Conflicts: modules/user/views/admin_users.html.php
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();
+
});