includes/clientside/static/ajax.js
changeset 672 08a7875258b4
parent 651 ce9d78d7251d
child 696 bd5069e1f19a
--- a/includes/clientside/static/ajax.js	Mon Jul 28 13:10:22 2008 -0600
+++ b/includes/clientside/static/ajax.js	Mon Jul 28 13:13:09 2008 -0600
@@ -21,6 +21,12 @@
       document.getElementById('ajaxEditContainer').innerHTML = ajax.responseText;
       selectButtonMajor('article');
       unselectAllButtonsMinor();
+      // if we're on a userpage, call the onload function to rebuild the tabs
+      if ( typeof(userpage_onload) == 'function' )
+      {
+        window.userpage_blocks = [];
+        userpage_onload();
+      }
     }
   });
 }