Display the upload dialog on validation errors
authorAlexander Ebert <ebert@woltlab.com>
Wed, 17 Apr 2019 18:50:53 +0000 (20:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 17 Apr 2019 18:50:53 +0000 (20:50 +0200)
wcfsetup/install/files/acp/templates/packageStartInstall.tpl

index 3c4b55e79386d3d8c6d101f2e42a029552c2fb6b..5922c0af612245875d160a6a41d5d5aa5982c607 100644 (file)
                });
                
                new AcpUiPackageSearch();
+               
+               {if $errorField === 'uploadPackage'}
+                       elBySel('.jsButtonUploadPackage').click();
+               {/if}
        });
 </script>
 
@@ -23,7 +27,7 @@
        
        <nav class="contentHeaderNavigation">
                <ul>
-                       <li><a href="#" class="button jsStaticDialog" data-dialog-id="packageUploadDialog"><span class="icon icon16 fa-upload"></span> <span>{lang}wcf.acp.package.upload{/lang}</span></a></li>
+                       <li><a href="#" class="button jsButtonUploadPackage jsStaticDialog" data-dialog-id="packageUploadDialog"><span class="icon icon16 fa-upload"></span> <span>{lang}wcf.acp.package.upload{/lang}</span></a></li>
                        <li><a href="{link controller='PackageList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.package.list{/lang}</span></a></li>
                        
                        {event name='contentHeaderNavigation'}