Fixed userpage events being fired even when the tabs aren't there
authorDan
Sun, 24 Aug 2008 13:39:46 -0400
changeset 707 7be26f1d1068
parent 706 397954f99873
child 708 162763d69256
Fixed userpage events being fired even when the tabs aren't there
includes/clientside/static/userpage.js
--- a/includes/clientside/static/userpage.js	Sun Aug 24 12:42:50 2008 -0400
+++ b/includes/clientside/static/userpage.js	Sun Aug 24 13:39:46 2008 -0400
@@ -7,6 +7,9 @@
   var wrapper = document.getElementById('userpage_wrap');
   var links = document.getElementById('userpage_links');
   
+  if ( !wrapper )
+    return false;
+  
   wrapper.className = 'userpage_wrap';
   links.className = 'userpage_links';