Fixed upload button
authorMarcel Werk <burntime@woltlab.com>
Tue, 11 Dec 2012 21:02:37 +0000 (22:02 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 11 Dec 2012 21:02:37 +0000 (22:02 +0100)
acptemplates/styleAdd.tpl

index d20b8d4f47d333e86b8f8220025a9a03c3557cbc..bb349c56d95e766ff954da4f7d508c3d85442cf1 100644 (file)
@@ -24,6 +24,9 @@
                $useFluidLayout.change(useFluidLayout);
                useFluidLayout();
                
+               WCF.Language.addObject({
+                       'wcf.global.button.upload': '{lang}wcf.global.button.upload{/lang}'
+               });
                new WCF.ACP.Style.ImageUpload(0, '{$tmpHash}');
                
                {if $action == 'edit' && $__wcf->getSession()->getPermission('admin.style.canAddStyle')}
                                        <dt><label for="image">{lang}wcf.acp.style.image{/lang}</label></dt>
                                        <dd class="framed">
                                                <img src="{if $action == 'add'}{@$__wcf->getPath()}images/stylePreview.png{else}{@$style->getPreviewImage()}{/if}" alt="" id="styleImage" />
-                                               <div id="uploadImage" class="marginTop"></div>
-                                               {*<input type="hidden" name="image" value="{$image}" readonly="readonly" class="long" /> TODO: Add upload here!*}
+                                               <div id="uploadImage"></div>
                                                {if $errorField == 'image'}
                                                        <small class="innerError">
                                                                {if $errorType == 'empty'}