Appending a hash of WCF's version to all JS files
authorMarcel Werk <burntime@woltlab.com>
Thu, 6 Jun 2013 15:55:45 +0000 (17:55 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 6 Jun 2013 15:55:45 +0000 (17:55 +0200)
wcfsetup/install/files/acp/templates/header.tpl
wcfsetup/install/files/acp/templates/languageItemList.tpl
wcfsetup/install/files/acp/templates/styleAdd.tpl
wcfsetup/install/files/acp/templates/styleList.tpl

index e1b5022441ec7f79d333abab0825fb351ad7a442..7b292354582e9d01a8d5fdd7b16896738a95a17e 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()}acp/js/WCF.ACP.js"></script>
+       <script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery.min.js?v={@$__wcfVersion}"></script>
+       <script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery-ui.min.js?v={@$__wcfVersion}"></script>
+       <script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery-ui.nestedSortable.js?v={@$__wcfVersion}"></script>
+       <script type="text/javascript" src="{@$__wcf->getPath()}js/3rdParty/jquery-ui.timepicker.min.js?v={@$__wcfVersion}"></script>
+       <script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.js?v={@$__wcfVersion}"></script>
+       <script type="text/javascript" src="{@$__wcf->getPath()}acp/js/WCF.ACP.js?v={@$__wcfVersion}"></script>
        <script type="text/javascript">
                //<![CDATA[
                WCF.User.init({$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}');
index 9d87e86161fdf8ecad832edc54af8dae0b8fc786..4fca6d75ed48bf03ffe8406f460593e8b459c73e 100644 (file)
@@ -1,6 +1,6 @@
 {include file='header' pageTitle="wcf.acp.language.item.list"}
 
-<script type="text/javascript" src="{@$__wcf->getPath()}acp/js/WCF.ACP.Language.js"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}acp/js/WCF.ACP.Language.js?v={@$__wcfVersion}"></script>
 <script type="text/javascript">
        //<![CDATA[
        $(function() {
index 171dcb421739b266e2b9959cf2da4ce5400269b1..2c30fdfa5b1ffe4cf7ea4506ae3a89cdbfac6c1e 100644 (file)
@@ -1,7 +1,7 @@
 {include file='header' pageTitle='wcf.acp.style.'|concat:$action}
 
-<script type="text/javascript" src="{@$__wcf->getPath()}acp/js/WCF.ACP.Style.js"></script>
-<script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.ColorPicker.js"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}acp/js/WCF.ACP.Style.js?v={@$__wcfVersion}"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.ColorPicker.js?v={@$__wcfVersion}"></script>
 <script type="text/javascript">
        //<![CDATA[
        $(function() {
index d37f89b1eab8677209d5ff2a6c4d6c664792b6b9..f763c56451295cc3aecc6073bf325c9e38bf9044 100644 (file)
@@ -1,6 +1,6 @@
 {include file='header' pageTitle='wcf.acp.style.list'}
 
-<script type="text/javascript" src="{@$__wcf->getPath()}acp/js/WCF.ACP.Style.js"></script>
+<script type="text/javascript" src="{@$__wcf->getPath()}acp/js/WCF.ACP.Style.js?v={@$__wcfVersion}"></script>
 <script type="text/javascript">
        //<![CDATA[
        $(function() {