From cbcf100f2bb4c4ae57cd423002ec17afcea2e756 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 26 Jan 2015 18:32:34 +0100 Subject: [PATCH] ClientJS: dialog aufmachen --- SL/ClientJS.pm | 3 ++- js/client_js.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SL/ClientJS.pm b/SL/ClientJS.pm index 0da0afd57..2eedbee07 100644 --- a/SL/ClientJS.pm +++ b/SL/ClientJS.pm @@ -75,7 +75,8 @@ my %supported_methods = ( # ## jQuery UI dialog plugin ## pattern: $().dialog('') - # Closing and removing the popup + # Opening and closing and closing a popup + 'dialog:open' => 1, # kivi.popup_dialog() 'dialog:close' => 1, # ## jQuery Form plugin ## diff --git a/js/client_js.js b/js/client_js.js index bd70c892f..a0e6eab61 100644 --- a/js/client_js.js +++ b/js/client_js.js @@ -89,7 +89,8 @@ ns.eval_json_result = function(data) { // ## jQuery UI dialog plugin ## - // Closing and removing the popup + // Opening and closing and closing a popup + else if (action[0] == 'dialog:open') kivi.popup_dialog(action[1]); else if (action[0] == 'dialog:close') $(action[1]).dialog('close'); // ## jQuery Form plugin ## -- 2.20.1