From 5409d46312b5f4b357943d7e0c7390a1402e1666 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Tue, 2 May 2017 12:50:23 +0000 Subject: - Bestellbedingungen nach Versandarten gruppieren git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6244 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/js/editable.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'views/js') diff --git a/views/js/editable.js b/views/js/editable.js index 41b82f1..022f3f3 100644 --- a/views/js/editable.js +++ b/views/js/editable.js @@ -72,6 +72,21 @@ opt.type = 'select'; opt.value = value; //j; + } + else if (options.type == 'checklist') + { + + opt.type = 'checklist'; + opt.source = []; + opt.value = options.value; + + for (var i in options.data) + { + + opt.source.push( { value: i, text: options.data[i] } ); + + } + } else { @@ -82,7 +97,7 @@ }; - } + } if (typeof options.callback == "function") opt.success = options.callback; -- cgit v1.2.3