From 11532af81ab15de7b9bb68d40216c3886c194b3f Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Wed, 22 Nov 2017 13:51:19 +0100 Subject: [PATCH] Javascriptabsturz falls es mehrere Partpicker gibt, bei denen aber einer keinen Dialog hat MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Durch Prüfung, ob es einen Dialog gibt, wird der Absturz vermieden --- js/kivi.Part.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/kivi.Part.js b/js/kivi.Part.js index 9a729b44f..9280fcf9c 100644 --- a/js/kivi.Part.js +++ b/js/kivi.Part.js @@ -194,7 +194,7 @@ namespace('kivi.Part', function(ns) { ns.close_picker_dialogs = function() { $('.part_autocomplete').each(function(_, e) { var picker = $(e).data('part_picker'); - if (picker) picker.close_dialog(); + if (picker && picker.dialog) picker.close_dialog(); }); } -- 2.20.1