From: woltlab.com Date: Thu, 27 Jun 2019 09:24:52 +0000 (+0000) Subject: Updating minified JavaScript files X-Git-Tag: 5.2.0_Alpha_1~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bd06f261ad109d710260ce812b518d13ed506a05;p=GitHub%2FWoltLab%2FWCF.git Updating minified JavaScript files --- diff --git a/com.woltlab.wcf/templates/__devtoolsLanguageChooser.tpl b/com.woltlab.wcf/templates/__devtoolsLanguageChooser.tpl index 91864470cc..fe8e59f50b 100644 --- a/com.woltlab.wcf/templates/__devtoolsLanguageChooser.tpl +++ b/com.woltlab.wcf/templates/__devtoolsLanguageChooser.tpl @@ -17,22 +17,6 @@ }; var callback = function(listItem) { - var languageCode = elData(listItem, 'language-code'); - if (languageCode === '{$__wcf->getLanguage()->getFixedLanguageCode()}') { - window.location.reload(); - return; - } - - var alternateLink = elBySel('link[rel="alternate"][hreflang="' + languageCode + '"]'); - if (alternateLink) { - // Check if the page does not have unique links per language, such as for the landing page. - var currentLink = elBySel('link[rel="alternate"][hreflang="{$__wcf->getLanguage()->getFixedLanguageCode()}"]'); - if (!currentLink || currentLink.href !== alternateLink.href) { - window.location = alternateLink.href; - return; - } - } - Ajax.apiOnce({ data: { actionName: 'devtoolsSetLanguage', diff --git a/com.woltlab.wcf/templates/__iconFormField.tpl b/com.woltlab.wcf/templates/__iconFormField.tpl index b8c8d2535d..fe3cecf0a4 100644 --- a/com.woltlab.wcf/templates/__iconFormField.tpl +++ b/com.woltlab.wcf/templates/__iconFormField.tpl @@ -22,9 +22,7 @@ input.value = iconName; }; - button.addEventListener('click', function(event) { - event.preventDefault(); - + button.addEventListener('click', function() { UiStyleFontAwesome.open(callback); }); }); diff --git a/com.woltlab.wcf/templates/articleAdd.tpl b/com.woltlab.wcf/templates/articleAdd.tpl index 355012dcdc..f149a9eeeb 100644 --- a/com.woltlab.wcf/templates/articleAdd.tpl +++ b/com.woltlab.wcf/templates/articleAdd.tpl @@ -86,13 +86,13 @@ {include file='formError'} {if $success|isset} -

{lang}wcf.global.success.{$action}{/lang}

+

{lang}wcf.global.success.{$action}{/lang}

{/if} {if $action == 'edit'}

isDeleted} style="display: none;"{/if}>{lang}wcf.acp.article.trash.notice{/lang}

- {if $lastVersion}

{lang}wcf.acp.article.lastVersion{/lang}

{/if} + {if $lastVersion}

{lang}wcf.acp.article.lastVersion{/lang}

{/if} {/if}
diff --git a/com.woltlab.wcf/templates/optionFieldList.tpl b/com.woltlab.wcf/templates/optionFieldList.tpl index 740eed8e1f..4ed68fe6ba 100644 --- a/com.woltlab.wcf/templates/optionFieldList.tpl +++ b/com.woltlab.wcf/templates/optionFieldList.tpl @@ -1,4 +1,5 @@ {if !$isGuestGroup|isset}{assign var=isGuestGroup value=false}{/if} +{if !$groupIsOwner|isset}{assign var=groupIsOwner value=false}{/if} {foreach from=$options item=optionData} {assign var=option value=$optionData[object]} {if $errorType|is_array && $errorType[$option->optionName]|isset} @@ -7,7 +8,16 @@ {assign var=error value=''} {/if}
- {if $isSearchMode|empty || !$optionData[hideLabelInSearch]}{/if} + + {if $isSearchMode|empty || !$optionData[hideLabelInSearch]} + + {/if} +
{@$optionData[html]} {if $error} @@ -21,4 +31,4 @@ {lang __optional=true}{@$langPrefix}{$option->optionName}.description{/lang}
-{/foreach} \ No newline at end of file +{/foreach} diff --git a/wcfsetup/install/files/acp/templates/formError.tpl b/wcfsetup/install/files/acp/templates/formError.tpl index d9b2e5e9d4..3e8987cc86 100644 --- a/wcfsetup/install/files/acp/templates/formError.tpl +++ b/wcfsetup/install/files/acp/templates/formError.tpl @@ -1,7 +1,7 @@ {if !$errorField|empty} {if ($errorField|is_array && $errorField[__securityToken]|isset) || $errorField == '__securityToken'} -

{lang}wcf.global.form.error.securityToken{/lang}

+ {else} -

{lang}wcf.global.form.error{/lang}

+ {/if} {/if} \ No newline at end of file