diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-08-09 23:08:18 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-08-09 23:08:18 -0600 |
commit | 69b7b1803a73090429efd09299ea15d73102f34c (patch) | |
tree | d8514d490d57d443a37ff50680359eec1ab0590a /lib/gallery.common.js | |
parent | a961211f569d51631a8ac12327cb72b4818c4853 (diff) |
Move hover effect to a function.
Diffstat (limited to 'lib/gallery.common.js')
-rw-r--r-- | lib/gallery.common.js | 12 |
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); |