From 9a2c4821aa260ff9191772d85e401503ae6c32e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 9 Nov 2015 13:31:16 +0100 Subject: [PATCH] Project: Picker in reinit_widgets registriert --- js/kivi.js | 5 +++++ templates/webpages/project/test_page.html | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/js/kivi.js b/js/kivi.js index 7e2516da1..6b47e1bf5 100644 --- a/js/kivi.js +++ b/js/kivi.js @@ -236,6 +236,11 @@ namespace("kivi", function(ns) { kivi.PartPicker($(elt)); }); + if (ns.ProjectPicker) + ns.run_once_for('input.project_autocomplete', 'project_picker', function(elt) { + kivi.ProjectPicker($(elt)); + }); + if (ns.CustomerVendorPicker) ns.run_once_for('input.customer_vendor_autocomplete', 'customer_vendor_picker', function(elt) { kivi.CustomerVendorPicker($(elt)); diff --git a/templates/webpages/project/test_page.html b/templates/webpages/project/test_page.html index 65f88c451..e4b8d92c6 100644 --- a/templates/webpages/project/test_page.html +++ b/templates/webpages/project/test_page.html @@ -4,3 +4,14 @@
[% L.project_picker('project_id', '', style='width: 600px') %] text
+ +Runtime test:
+
' + + + -- 2.20.1