From: Sven Schöling Date: Mon, 26 Jan 2015 17:32:34 +0000 (+0100) Subject: ClientJS: dialog aufmachen X-Git-Tag: release-3.2.0beta~31 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cbcf100f2bb4c4ae57cd423002ec17afcea2e756;p=kivitendo-erp.git ClientJS: dialog aufmachen --- 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 ##