Remove long-deprecated JavaScript template events from `headInclude.tpl`
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 13 May 2022 09:17:27 +0000 (11:17 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 13 May 2022 09:17:27 +0000 (11:17 +0200)
com.woltlab.wcf/templates/headInclude.tpl
com.woltlab.wcf/templates/headIncludeJavaScript.tpl

index da2b9a2b8831c7e51d935ce40c49faeb9f8471b4..77c659a6df2512d6ba42618d3d30992d6d7bd594 100644 (file)
 
 {include file='headIncludeJavaScript'}
 
-<script data-relocate="true">
-       WCF.Language.addObject({
-               {* dummy language item to preserve compatibility with WCF 2.0, move this to headIncludeJavaScript *}
-               'wcf.global.error.title': '{jslang}wcf.global.error.title{/jslang}'
-               
-               {* DEPRECATED -- PLEASE USE javascriptLanguageImport@headIncludeJavaScript *}
-               {event name='javascriptLanguageImport'}
-       });
-</script>
-
-{* DEPRECATED -- PLEASE USE javascriptInclude@headIncludeJavaScript *}
-{event name='javascriptInclude'}
-
 <!-- Icons -->
 <link rel="apple-touch-icon" sizes="180x180" href="{$__wcf->getStyleHandler()->getStyle()->getFaviconAppleTouchIcon()}">
 <link rel="manifest" href="{@$__wcf->getStyleHandler()->getStyle()->getFaviconManifest()}">
 <meta name="msapplication-config" content="{@$__wcf->getStyleHandler()->getStyle()->getFaviconBrowserconfig()}">
 <meta name="theme-color" content="{$__wcf->getStyleHandler()->getStyle()->getVariable('wcfPageThemeColor', true)}">
 
-<script data-relocate="true">
-       $(function() {
-               {* DEPRECATED -- PLEASE USE javascriptInit@headIncludeJavaScript *}
-               {event name='javascriptInit'}
-       });
-</script>
-
 {@HEAD_CODE}
index 4ff9f992da72b01f5e894664c315b4989b7848d6..9f110a68aa6cec6e959e83b626a59499ed6a8014 100644 (file)
@@ -96,6 +96,7 @@ window.addEventListener('pageshow', function(event) {
                        'wcf.global.decimalPoint': '{jslang}wcf.global.decimalPoint{/jslang}',
                        'wcf.global.error.ajax.network': '{jslang __literal=true}wcf.global.error.ajax.network{/jslang}',
                        'wcf.global.error.timeout': '{jslang}wcf.global.error.timeout{/jslang}',
+                       'wcf.global.error.title': '{jslang}wcf.global.error.title{/jslang}'
                        'wcf.global.form.error.empty': '{jslang}wcf.global.form.error.empty{/jslang}',
                        'wcf.global.form.error.greaterThan': '{jslang __literal=true}wcf.global.form.error.greaterThan{/jslang}',
                        'wcf.global.form.error.lessThan': '{jslang __literal=true}wcf.global.form.error.lessThan{/jslang}',