Permalink
Browse files

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

  • Loading branch information...
1 parent 6d23fa6 commit 13951829aa962e044932402f5dca45d83580f1d3 @bauhouse committed Apr 23, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 workspace/public/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');
@@ -100,7 +104,7 @@ window.addEvent('domready', function() {
var req = new Request.HTML({
method: 'get',
- url: '/sym/fluid960gs/workspace/public/data/ajax-response.html',
+ url: '/fluid960gs/data/ajax-response.html',
update: $('ajax-content'),
onComplete: function(html) {
$('loading').setStyle('display', 'none'); //Hides the loading image

0 comments on commit 1395182

Please sign in to comment.