From 53488c0d24166ccd675f6b604967aa7686f108f6 Mon Sep 17 00:00:00 2001 From: "JP-DEV\\sjpad" Date: Tue, 26 Dec 2017 16:59:35 -0500 Subject: [PATCH] Minor bug fix for when dialogs are stacked cancel action intermittent. --- library/dialog.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/dialog.js b/library/dialog.js index 3e38f5641..ee8948bb3 100644 --- a/library/dialog.js +++ b/library/dialog.js @@ -448,8 +448,10 @@ function dlgopen(url, winname, width, height, forceNewWindow, title, opts) { }).modal({backdrop: 'static', keyboard: true}, 'show');// Show Modal // define local dialog close() function. openers scope - window.dlgclose = function (calling, args) { - opts.callBack = {call: calling, args: args}; + window.dlgcloseAjax = function (calling, args) { + if (calling) { + opts.callBack = {call: calling, args: args}; + } dlgContainer.modal('hide'); // important to clean up in only one place, hide event.... return false; }; -- 2.11.4.GIT