From: Sven Schöling Date: Mon, 9 Nov 2015 12:31:16 +0000 (+0100) Subject: Project: Picker in reinit_widgets registriert X-Git-Tag: release-3.4.1~590 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9a2c4821aa260ff9191772d85e401503ae6c32e1;p=kivitendo-erp.git Project: Picker in reinit_widgets registriert --- 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:
+
' + + +