Small html/style optimizations
authorMarcel Werk <burntime@woltlab.com>
Sat, 23 Apr 2016 18:32:33 +0000 (20:32 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 23 Apr 2016 18:32:33 +0000 (20:32 +0200)
com.woltlab.wcf/templates/accountManagement.tpl
com.woltlab.wcf/templates/avatarEdit.tpl
com.woltlab.wcf/templates/recaptcha.tpl
com.woltlab.wcf/templates/register.tpl
wcfsetup/install/files/js/WCF.User.js

index 71d1ace6b16937e548be9538cb597faba5053f62..aa02157a77faa3da6cc52898ec6f9894d7347af8 100644 (file)
                                                </small>
                                        {/if}
                                        <small>{lang}wcf.user.accountManagement.password.description{/lang}</small>
-                               </dd>
-                       </dl>
-                       
-                       <dl>
-                               <dt></dt>
-                               <dd>
-                                       <ul class="buttonList smallButtons">
-                                               <li><a class="button small" href="{link controller='LostPassword'}{/link}"><span>{lang}wcf.user.lostPassword{/lang}</span></a></li>
-                                       </ul>
+                                       <small><a href="{link controller='LostPassword'}{/link}">{lang}wcf.user.lostPassword{/lang}</a></small>
                                </dd>
                        </dl>
                        
index ac66906b2c40c06dd30e4bd3d368dfd759070173..1f4a0fa1093021d9e0314b207e124765ff57ad46 100644 (file)
                        });
                        
                        {if !$__wcf->user->disableAvatar}
-                       {if $__wcf->getUserProfileHandler()->getAvatar()->canCrop()}
-                       new WCF.User.Avatar.Upload(0, new WCF.User.Avatar.Crop({@$__wcf->getUserProfileHandler()->getAvatar()->avatarID}));
-                       {else}
-                       new WCF.User.Avatar.Upload();
-                       {/if}
+                               {if $__wcf->getUserProfileHandler()->getAvatar()->canCrop()}
+                                       new WCF.User.Avatar.Upload(0, new WCF.User.Avatar.Crop({@$__wcf->getUserProfileHandler()->getAvatar()->avatarID}));
+                               {else}
+                                       new WCF.User.Avatar.Upload();
+                               {/if}
                        {/if}
                });
                //]]>
index ae01797f3dba4d9c5605452ff892142f64cd7a26..456b94dca9a51769256ad62b785a62d3500a1a82 100644 (file)
@@ -4,8 +4,10 @@
        {* No explicit keys were set, use legacy V1 API and WoltLab's OEM keys *}
        {if RECAPTCHA_PUBLICKEY === '' || RECAPTCHA_PRIVATEKEY === ''}
        <section class="section">
-               <h2 class="sectionTitle">{lang}wcf.recaptcha.title{/lang}</h2>
-               <small>{lang}wcf.recaptcha.description{/lang}</small>
+               <header class="sectionHeader">
+                       <h2 class="sectionTitle">{lang}wcf.recaptcha.title{/lang}</h2>
+                       <small class="sectionDescription">{lang}wcf.recaptcha.description{/lang}</small>
+               </header>
                
                <dl class="wide reCaptcha{if $errorField|isset && $errorField == 'recaptchaString'} formError{/if}">
                        {if !$ajaxCaptcha|isset || !$ajaxCaptcha}
index a8ca146daca6652a03e5273a23d42bf5b44d05b8..822549ea22c20d7247999bf99f3e7306429dc449 100644 (file)
@@ -19,9 +19,7 @@
 {include file='formError'}
 
 <form method="post" action="{link controller='Register'}{/link}">
-       <section class="section">
-               <h2 class="sectionTitle">{lang}wcf.user.username{/lang}</h2>
-               
+       <div class="section">
                <dl{if $errorType.username|isset} class="formError"{/if}>
                        <dt>
                                <label for="{@$randomFieldNames[username]}">{lang}wcf.user.username{/lang}</label>
@@ -40,7 +38,7 @@
                </dl>
                
                {event name='usernameFields'}
-       </section>
+       </div>
        
        <section class="section" id="fieldset1">
                <header class="sectionHeader">
index 987f44e54d8bcc77e8fc4f337d3afb2ed5da9c68..019fcbc6a2d15f2b0b7d60d2df3c33501aad24b5 100644 (file)
@@ -2515,7 +2515,7 @@ WCF.User.Avatar.Upload = WCF.Upload.extend({
         */
        _updateImage: function(url, canCrop) {
                $('#avatarUpload > dt > img').remove();
-               var $image = $('<img src="' + url + '" alt="" />').css({
+               var $image = $('<img src="' + url + '" class="userAvatarImage" alt="" />').css({
                        'height': 'auto',
                        'max-height': '96px',
                        'max-width': '96px',
@@ -2553,7 +2553,7 @@ WCF.User.Avatar.Upload = WCF.Upload.extend({
                return {
                        userID: this._userID
                };
-       },
+       }
 });
 
 /**