Browse files

Mootools JavaScript automatically hides div.block when h2 a[class=hide]

  • Loading branch information...
1 parent ec4ef9c commit a44322b926729e95ca0f590a66568bd7382b62f4 @bauhouse committed Apr 23, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/mootools-fluid16-autoselect.js
View
4 js/mootools-fluid16-autoselect.js
@@ -12,6 +12,10 @@ window.addEvent('domready', function() {
var mySlide = new Fx.Slide(elToHide);
item.store('fx', mySlide);
+ if (item.hasClass('hidden')){
+ mySlide.hide();
+ }
+
item.addEvent('click', function(e) {
e.stop();
var fx = this.retrieve('fx');

0 comments on commit a44322b

Please sign in to comment.