Changeset 2650

Show
Ignore:
Timestamp:
06/28/08 00:16:50 (20 months ago)
Author:
bsmith
Message:

bugzid:80365 - backporting changes from mtcs templatessets

Location:
branches/release-41/default_templates
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/default_templates/javascript.mtml

    r2631 r2650  
    308308</mt:Ignore> 
    309309var mtFetchedUser = false; 
     310<mt:IfBlog> 
    310311function mtFetchUser(cb) { 
    311312    if (!cb) cb = 'mtSetUser'; 
     
    324325    } 
    325326} 
     327</mt:IfBlog> 
    326328 
    327329<mt:Ignore> 
     
    347349 */ 
    348350</mt:Ignore> 
     351<mt:IfBlog> 
    349352var mtRequestSubmitted = false; 
    350353function mtCommentOnSubmit(f) { 
     
    429432                    cf.sid.value = u.sid; 
    430433            } 
    431         } 
    432     } 
    433 } 
     434            if (cf.post.disabled) 
     435                cf.post.disabled = false; 
     436            if (cf.preview_button.disabled) 
     437                cf.preview_button.disabled = false; 
     438            mtRequestSubmitted = false; 
     439        } 
     440    } 
     441} 
     442</mt:IfBlog> 
    434443 
    435444<mt:Ignore> 
     
    440449 */ 
    441450</mt:Ignore> 
     451<mt:IfBlog> 
    442452function mtEntryOnLoad() { 
    443453    <mt:Unless tag="IfPingsAccepted">mtHide('trackbacks-info');</mt:Unless> 
     
    461471 
    462472mtAttachEvent('usersignin', mtUserOnLoad); 
     473</mt:IfBlog> 
    463474 
    464475<mt:Ignore> 
     
    552563 */ 
    553564</mt:Ignore> 
     565<mt:IfBlog> 
    554566function mtShowGreeting() { 
    555567<mt:IfRegistrationAllowed> 
     
    602614</mt:IfRegistrationAllowed> 
    603615} 
     616</mt:IfBlog> 
    604617 
    605618<mt:Ignore> 
     
    842855// END: fast browser onload init 
    843856 
     857<mt:IfBlog> 
    844858<mt:IfRegistrationAllowed> 
    845859/*** 
     
    867881} 
    868882</mt:IfRegistrationAllowed> 
     883</mt:IfBlog> 
  • branches/release-41/default_templates/signin.mtml

    r2544 r2650  
    88function mtUpdateSignInWidget(u) { 
    99    var el = document.getElementById('signin-widget-content'); 
     10    var content = ''; 
    1011    if (!el) return; 
    1112    if (u) { 
     
    2021        u = mtGetUser(); 
    2122    } 
    22     if (u) { 
     23    if (u && u.name) { 
    2324        var url; 
    2425        if (u.is_authenticated) {