Index: branches/release-41/default_templates/signin.mtml
===================================================================
--- branches/release-41/default_templates/signin.mtml (revision 2544)
+++ branches/release-41/default_templates/signin.mtml (revision 2650)
@@ -8,4 +8,5 @@
 function mtUpdateSignInWidget(u) {
     var el = document.getElementById('signin-widget-content');
+    var content = '';
     if (!el) return;
     if (u) {
@@ -20,5 +21,5 @@
         u = mtGetUser();
     }
-    if (u) {
+    if (u && u.name) {
         var url;
         if (u.is_authenticated) {
Index: branches/release-41/default_templates/javascript.mtml
===================================================================
--- branches/release-41/default_templates/javascript.mtml (revision 2631)
+++ branches/release-41/default_templates/javascript.mtml (revision 2650)
@@ -308,4 +308,5 @@
 </mt:Ignore>
 var mtFetchedUser = false;
+<mt:IfBlog>
 function mtFetchUser(cb) {
     if (!cb) cb = 'mtSetUser';
@@ -324,4 +325,5 @@
     }
 }
+</mt:IfBlog>
 
 <mt:Ignore>
@@ -347,4 +349,5 @@
  */
 </mt:Ignore>
+<mt:IfBlog>
 var mtRequestSubmitted = false;
 function mtCommentOnSubmit(f) {
@@ -429,7 +432,13 @@
                     cf.sid.value = u.sid;
             }
-        }
-    }
-}
+            if (cf.post.disabled)
+                cf.post.disabled = false;
+            if (cf.preview_button.disabled)
+                cf.preview_button.disabled = false;
+            mtRequestSubmitted = false;
+        }
+    }
+}
+</mt:IfBlog>
 
 <mt:Ignore>
@@ -440,4 +449,5 @@
  */
 </mt:Ignore>
+<mt:IfBlog>
 function mtEntryOnLoad() {
     <mt:Unless tag="IfPingsAccepted">mtHide('trackbacks-info');</mt:Unless>
@@ -461,4 +471,5 @@
 
 mtAttachEvent('usersignin', mtUserOnLoad);
+</mt:IfBlog>
 
 <mt:Ignore>
@@ -552,4 +563,5 @@
  */
 </mt:Ignore>
+<mt:IfBlog>
 function mtShowGreeting() {
 <mt:IfRegistrationAllowed>
@@ -602,4 +614,5 @@
 </mt:IfRegistrationAllowed>
 }
+</mt:IfBlog>
 
 <mt:Ignore>
@@ -842,4 +855,5 @@
 // END: fast browser onload init
 
+<mt:IfBlog>
 <mt:IfRegistrationAllowed>
 /***
@@ -867,2 +881,3 @@
 }
 </mt:IfRegistrationAllowed>
+</mt:IfBlog>
