From f166f8c90f15d73e888673bb1e5e5cf108f1b4db Mon Sep 17 00:00:00 2001 From: "Andreas H. Kelch" Date: Thu, 21 Nov 2019 07:23:46 +0100 Subject: [PATCH] Missing javascript for ViUR Forms --- resources/js/viur-forms.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/js/viur-forms.js b/resources/js/viur-forms.js index 2688004..b05892d 100644 --- a/resources/js/viur-forms.js +++ b/resources/js/viur-forms.js @@ -17,6 +17,14 @@ $(document).ready(function () { }) }); + // ---- Boolean Bones ---- + $(".js-viur-bones-bool").each(function () { + $(this).on("change",function(){ + var val = $(this).get(0).checked?"True":"False"; + $("input[name='"+$(this).data("field")+"']").val(val); + }) + }); + // ---- Relational.Treeitem.File Bones ---- function viurBonesFileCreateNewInputGroup(reordableArea) {