diff --git a/website/include/floatingdialog.js b/website/include/floatingdialog.js index 5460aab..5606586 100644 --- a/website/include/floatingdialog.js +++ b/website/include/floatingdialog.js @@ -20,7 +20,10 @@ FloatingDialog.prototype.Open = function (parameters) this.dialogDiv = $('
').addClass ('dialog').appendTo ($('body')); $('
').addClass ('dialogtitle').html (parameters.title).appendTo (this.dialogDiv); - this.contentDiv = $('
').addClass ('dialogcontent').html (parameters.text).appendTo (this.dialogDiv); + this.contentDiv = $('
').addClass ('dialogcontent').appendTo (this.dialogDiv); + if (parameters.text !== null && parameters.text !== undefined) { + this.contentDiv.html (parameters.text); + } var buttonsDiv = $('
').addClass ('dialogbuttons').appendTo (this.dialogDiv); var i, button; @@ -44,6 +47,11 @@ FloatingDialog.prototype.Close = function () $('body').unbind ('click'); }; +FloatingDialog.prototype.GetContentDiv = function () +{ + return this.contentDiv; +}; + FloatingDialog.prototype.Resize = function () { if (this.dialogDiv === null) {