- public/js/DialogLib.js: if dialog already present, it is removed before new one is attached (if dialogs are displayed on same page one afte another)

This commit is contained in:
alex
2019-07-04 11:25:32 +02:00
parent 71615770f1
commit f664f1442f
+6 -1
View File
@@ -55,7 +55,12 @@ var FHC_DialogLib = {
*/
alertDefault: function(title, html, width)
{
var strDivDialog = "<div id=\"fhc-dialoglib-dialog\">";
var dialogdiv = $("#fhc-dialoglib-dialog");
if (dialogdiv.length)
dialogdiv.remove();
var strDivDialog = "<div id='fhc-dialoglib-dialog'>";
strDivDialog += html;
strDivDialog += "</div>";