From e679331accdfcff85bf0e81b1c5eb32e2c7a8a91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 27 Oct 2017 16:01:24 +0200 Subject: [PATCH] =?utf8?q?vergessen=20f=C3=BCr=20c4409b:=20Filter=20nach?= =?utf8?q?=20Namen=20f=C3=BCr=20Buchungsvorlagen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Ohne die Funktion 'filter_templates' in RecordTemplate.js macht ein Aufruf dieser aus template/record_template/dialog.html gar keinen Sinn. --- js/kivi.RecordTemplate.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/kivi.RecordTemplate.js b/js/kivi.RecordTemplate.js index 8318098e7..af8484043 100644 --- a/js/kivi.RecordTemplate.js +++ b/js/kivi.RecordTemplate.js @@ -72,4 +72,12 @@ namespace('kivi.RecordTemplate', function(ns) { id: id }, kivi.eval_json_result); }; + + ns.filter_templates = function() { + $.post('controller.pl', { + action: 'RecordTemplate/filter_templates', + template_filter: $("#template_filter").val(), + template_type: $("#record_template_dialog_template_type").val(), + }, kivi.eval_json_result); + }; }); -- 2.20.1