summaryrefslogtreecommitdiff
path: root/lib/gallery.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gallery.common.js')
-rw-r--r--lib/gallery.common.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js
index 3a4d3c0a..8a769327 100644
--- a/lib/gallery.common.js
+++ b/lib/gallery.common.js
@@ -92,5 +92,17 @@
return ht + parseInt(mt) + parseInt(mb);
};
+ // Add hover state to buttons
+ $.fn.gallery_hover_init = function() {
+ $(".ui-state-default").hover(
+ function(){
+ $(this).addClass("ui-state-hover");
+ },
+ function(){
+ $(this).removeClass("ui-state-hover");
+ }
+ );
+ }
+
})(jQuery);