From c945cd207d47732f6df5611913865bc9728b4312 Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Mon, 23 May 2022 09:21:37 +0200 Subject: [PATCH] fix: quiqqer/quiqqer#1156 --- bin/Controls/Independent/Items/Custom.html | 3 +++ bin/Controls/Independent/Items/Custom.js | 15 ++++++++------- locale.xml | 10 ++++++++++ 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/bin/Controls/Independent/Items/Custom.html b/bin/Controls/Independent/Items/Custom.html index e2194e5..d25f2d8 100644 --- a/bin/Controls/Independent/Items/Custom.html +++ b/bin/Controls/Independent/Items/Custom.html @@ -163,6 +163,9 @@ </span> <input class="field-container-field" type="text" name="click"/> </label> + <div class="field-container-item-desc"> + {{clickDescription}} + </div> </td> </tr> </table> diff --git a/bin/Controls/Independent/Items/Custom.js b/bin/Controls/Independent/Items/Custom.js index 81f2bc5..efbcbc6 100644 --- a/bin/Controls/Independent/Items/Custom.js +++ b/bin/Controls/Independent/Items/Custom.js @@ -42,13 +42,14 @@ define('package/quiqqer/menu/bin/Controls/Independent/Items/Custom', [ status : QUILocale.get('quiqqer/quiqqer', 'status'), statusDescription: QUILocale.get(lg, 'tpl.statusDescription'), - title : QUILocale.get('quiqqer/quiqqer', 'title'), - linkTitle : QUILocale.get(lg, 'tpl.linkTitle'), - icon : QUILocale.get(lg, 'tpl.icon'), - url : QUILocale.get(lg, 'tpl.url'), - rel : QUILocale.get(lg, 'tpl.rel'), - relDescription: QUILocale.get(lg, 'tpl.relDescription'), - click : QUILocale.get(lg, 'tpl.click'), + title : QUILocale.get('quiqqer/quiqqer', 'title'), + linkTitle : QUILocale.get(lg, 'tpl.linkTitle'), + icon : QUILocale.get(lg, 'tpl.icon'), + url : QUILocale.get(lg, 'tpl.url'), + rel : QUILocale.get(lg, 'tpl.rel'), + relDescription : QUILocale.get(lg, 'tpl.relDescription'), + click : QUILocale.get(lg, 'tpl.click'), + clickDescription: QUILocale.get(lg, 'tpl.clickDescription'), alternate : QUILocale.get(lg, 'tpl.rel.alternate'), author : QUILocale.get(lg, 'tpl.rel.author'), diff --git a/locale.xml b/locale.xml index 0cc2923..60aea05 100644 --- a/locale.xml +++ b/locale.xml @@ -366,6 +366,16 @@ <de><![CDATA[Klick Event (JavaScript)]]></de> <en><![CDATA[Click event (JavaScript)]]></en> </locale> + <locale name="tpl.clickDescription"> + <de><![CDATA[ + FÞge hier den Funktionsnamen der JavaScript Funktion ein welche bei Klick aufgerufen werden soll. + MÃķchtest du eine eigene Funktion per Klick ausfÞhren, kannst du hierzu die custom.js deines Projektes verwenden. + ]]></de> + <en><![CDATA[ + Add here the function name of the JavaScript function which should be called on click. + If you want to execute your own function on click, you can use the custom.js of your project. + ]]></en> + </locale> <locale name="tpl.Site"> <de><![CDATA[Site]]></de> <en><![CDATA[Site]]></en> -- GitLab