Added support for minified JavaScript classes
authorAlexander Ebert <ebert@woltlab.com>
Sat, 11 May 2013 23:17:24 +0000 (01:17 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 11 May 2013 23:17:24 +0000 (01:17 +0200)
com.woltlab.wcf/template/aclPermissions.tpl
com.woltlab.wcf/template/headInclude.tpl
com.woltlab.wcf/template/imageViewer.tpl
wcfsetup/setup/template/stepSearchWcfDir.tpl

index 044330f7297103b58ef5c9622dc43ef2d052a8b4..faea41d6e9e22e0402461b9acf5f0bca059c2048 100644 (file)
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.ACL.js"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.ACL{if !DEBUG_MODE}.min{/if}.js"></script>
 <script type="text/javascript">
        //<![CDATA[
        $(function() {
index 584c42d2b2617468877dfc34690dee7d6a1f5308..89dd17944b21de316c8864dd3e64c385930d83c7 100644 (file)
        var TIME_NOW = {@TIME_NOW};
        //]]>
 </script>
-<script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery.min.js"></script>
-<script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery-ui.min.js"></script>
-<script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery-ui.nestedSortable.js"></script>
-<script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery-ui.timepicker.min.js"></script>
-<script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.js"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery.min{if !DEBUG_MODE}.min{/if}.js"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery-ui.min{if !DEBUG_MODE}.min{/if}.js"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery-ui.nestedSortable{if !DEBUG_MODE}.min{/if}.js"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery-ui.timepicker.min{if !DEBUG_MODE}.min{/if}.js"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}js/WCF{if !DEBUG_MODE}.min{/if}.js"></script>
 <script type="text/javascript">
        //<![CDATA[
        WCF.User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}');
index 72c51f6111043eb19ea2c5332e37e22dac597a2d..1e55c221254ca096bcfaf7abd8b452c34a11bad4 100644 (file)
@@ -1,6 +1,6 @@
 {if !$__imageViewerLoaded|isset}
-       <script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/slimbox2.min.js"></script>
-       <script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.ImageViewer.js"></script>
+       <script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/slimbox2.min{if !DEBUG_MODE}.min{/if}.js"></script>
+       <script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.ImageViewer{if !DEBUG_MODE}.min{/if}.js"></script>
        <script type="text/javascript">
                //<![CDATA[
                var $imageViewer = null;
index 1d77bc1f3ca58302bcba1ff861983429dcc2d3f5..271ab85dea5950c4749b7593b11cfaeb01f8ed1f 100644 (file)
@@ -1,6 +1,6 @@
 {include file='header'}
 
-<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
+<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min{if !DEBUG_MODE}.min{/if}.js"></script>
 <script type="text/javascript">
        //<![CDATA[
        if (window.jQuery) {