Index: lams_central/web/includes/javascript/dialog.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/dialog.js,v diff -u -r1.1.2.12 -r1.1.2.13 --- lams_central/web/includes/javascript/dialog.js 27 Oct 2016 05:57:29 -0000 1.1.2.12 +++ lams_central/web/includes/javascript/dialog.js 28 Oct 2016 02:49:07 -0000 1.1.2.13 @@ -26,6 +26,7 @@ * If not, creates a new dialog with the given ID and init parameters. */ function showDialog(id, initParams, extraButtons, recreate) { + var dialog = $('#' + id); // is it open already? if (dialog.length > 0) {