Index: lams_central/web/includes/javascript/dialog.js =================================================================== diff -u -r59af1a95dadad5e868b288037f77bf262fdb1954 -r4a2a1ea3d6d2248d1c4146e6a48e71259c64cee1 --- lams_central/web/includes/javascript/dialog.js (.../dialog.js) (revision 59af1a95dadad5e868b288037f77bf262fdb1954) +++ lams_central/web/includes/javascript/dialog.js (.../dialog.js) (revision 4a2a1ea3d6d2248d1c4146e6a48e71259c64cee1) @@ -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) {