From fb7af35df8e23b31f2b86d083c3656bba41bfdac Mon Sep 17 00:00:00 2001 From: juridon <66515042+juridon@users.noreply.github.com> Date: Thu, 28 May 2026 23:52:54 +0900 Subject: [PATCH] =?UTF-8?q?jQuery=E3=81=AF=E3=81=8C=E3=81=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/checkvalue/js/config.js | 62 +++++++++++++++++-------------- examples/checkvalue/manifest.json | 3 +- 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/examples/checkvalue/js/config.js b/examples/checkvalue/js/config.js index 5897fe1..1c8afea 100644 --- a/examples/checkvalue/js/config.js +++ b/examples/checkvalue/js/config.js @@ -4,9 +4,8 @@ * * Licensed under the MIT License */ -jQuery.noConflict(); -(($, PLUGIN_ID) => { +((PLUGIN_ID) => { 'use strict'; const terms = { @@ -41,9 +40,10 @@ jQuery.noConflict(); }; let lang = kintone.getLoginUser().language; const i18n = (lang in terms) ? terms[lang] : terms.ja; - const configHtml = $('#checkValue_plugin').html(); - const tmpl = $.templates(configHtml); - $('#checkValue_plugin').html(tmpl.render({'terms': i18n})); + const checkValuePlugin = document.getElementById('checkValue_plugin'); + const configHtml = checkValuePlugin.innerHTML; + const tmpl = jsrender.templates(configHtml); + checkValuePlugin.innerHTML = tmpl.render({'terms': i18n}); // プラグインIDの設定 const KEY = PLUGIN_ID; @@ -73,19 +73,19 @@ jQuery.noConflict(); // 取得したフィールドのフィールド名をプルダウンメニューのラベル、フィールドコードをプルダウンメニューの値に設定する。 for (let i = 0; i < fields.length; i++) { const prop = properties[fields[i]]; - const $option = $('