Changeset 2650
- Timestamp:
- 06/28/08 00:16:50 (20 months ago)
- Location:
- branches/release-41/default_templates
- Files:
-
- 2 modified
-
javascript.mtml (modified) (10 diffs)
-
signin.mtml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-41/default_templates/javascript.mtml
r2631 r2650 308 308 </mt:Ignore> 309 309 var mtFetchedUser = false; 310 <mt:IfBlog> 310 311 function mtFetchUser(cb) { 311 312 if (!cb) cb = 'mtSetUser'; … … 324 325 } 325 326 } 327 </mt:IfBlog> 326 328 327 329 <mt:Ignore> … … 347 349 */ 348 350 </mt:Ignore> 351 <mt:IfBlog> 349 352 var mtRequestSubmitted = false; 350 353 function mtCommentOnSubmit(f) { … … 429 432 cf.sid.value = u.sid; 430 433 } 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> 434 443 435 444 <mt:Ignore> … … 440 449 */ 441 450 </mt:Ignore> 451 <mt:IfBlog> 442 452 function mtEntryOnLoad() { 443 453 <mt:Unless tag="IfPingsAccepted">mtHide('trackbacks-info');</mt:Unless> … … 461 471 462 472 mtAttachEvent('usersignin', mtUserOnLoad); 473 </mt:IfBlog> 463 474 464 475 <mt:Ignore> … … 552 563 */ 553 564 </mt:Ignore> 565 <mt:IfBlog> 554 566 function mtShowGreeting() { 555 567 <mt:IfRegistrationAllowed> … … 602 614 </mt:IfRegistrationAllowed> 603 615 } 616 </mt:IfBlog> 604 617 605 618 <mt:Ignore> … … 842 855 // END: fast browser onload init 843 856 857 <mt:IfBlog> 844 858 <mt:IfRegistrationAllowed> 845 859 /*** … … 867 881 } 868 882 </mt:IfRegistrationAllowed> 883 </mt:IfBlog> -
branches/release-41/default_templates/signin.mtml
r2544 r2650 8 8 function mtUpdateSignInWidget(u) { 9 9 var el = document.getElementById('signin-widget-content'); 10 var content = ''; 10 11 if (!el) return; 11 12 if (u) { … … 20 21 u = mtGetUser(); 21 22 } 22 if (u ) {23 if (u && u.name) { 23 24 var url; 24 25 if (u.is_authenticated) {
