includes/clientside/static/userpage.js
changeset 699 c7d737202d59
parent 672 08a7875258b4
child 707 7be26f1d1068
--- a/includes/clientside/static/userpage.js	Sun Aug 17 23:24:41 2008 -0400
+++ b/includes/clientside/static/userpage.js	Thu Aug 21 08:24:04 2008 -0400
@@ -17,7 +17,7 @@
     var block = blocks[i];
     if ( /^tab:/.test(block.id) )
     {
-      $(block).addClass('userpage_block');
+      $dynano(block).addClass('userpage_block');
       var block_id = block.id.substr(4);
       userpage_blocks.push(block_id);
       if ( !first_block )
@@ -88,9 +88,9 @@
     var a = document.getElementById('userpage_blocklink_' + userpage_blocks[i]);
     if ( a )
     {
-      if ( $(a.parentNode).hasClass('userpage_tab_active') )
+      if ( $dynano(a.parentNode).hasClass('userpage_tab_active') )
       {
-        $(a.parentNode).rmClass('userpage_tab_active');
+        $dynano(a.parentNode).rmClass('userpage_tab_active');
       }
     }
   }
@@ -99,20 +99,19 @@
     var div = document.getElementById('tab:' + block);
     div.style.display = 'block';
   }
-  /*
   else
   {
+    // DISABLED: see "nofade = true;" above.
     // do this in a slightly fancier fashion
-    load_component('SpryEffects');
-    (new Spry.Effect.Blind('tab:' + current_block, { from: '100%', to: '0%', finish: function()
-        {
-          (new Spry.Effect.Blind('tab:' + block, { from: '0%', to: '100%' })).start();
-        }
-      })).start();
+    load_component('jquery');
+    load_component('jquery-ui');
+    $('#tab:' + current_block).hide("blind", {}, 500, function()
+    {
+      $('#tab:' + block).show("blind", {}, 500);
+    });
   }
-  */
   var a = document.getElementById('userpage_blocklink_' + block);
-  $(a.parentNode).addClass('userpage_tab_active');
+  $dynano(a.parentNode).addClass('userpage_tab_active');
   
   window.location.hash = 'tab:' + block;
   setScrollOffset(currentScroll);