" + description + "
" + dialogHTML; UniversalModalDialog.showModalDialog(caption, dialogHTML, "OK", "Cancel", function() { var selectedText = $("#universal-modal-body").find(".modal-dialog-input-control").val().trim(); var shouldSend = (selectedText != ""); shouldSend = shouldSend || (canBeEmpty); shouldSend = shouldSend && (paramValue != selectedText); if (shouldSend) onSelectValueCallback(selectedText); }); } UniversalModalDialog.showModalDialog = function(caption, dialogHTML, primaryButtonCaption, secondaryButtonCaption, onModalDialogPrimaryClick, onModalDialogSecondaryClick) { secondaryButtonCaption = secondaryButtonCaption || ""; UniversalModalDialog.initializeModalDialogWindow(); $("#universal-modal-body").html(dialogHTML); $("#universal-modal-warning-caption").html(caption); $("#universal-modal-dlg-button-primary").html(primaryButtonCaption); $("#universal-modal-dlg-button-secondary").html(secondaryButtonCaption); if (secondaryButtonCaption == "") $("#universal-modal-dlg-button-secondary").hide(); else $("#universal-modal-dlg-button-secondary").show(); UniversalModalDialog.showModalDialogWindow(onModalDialogPrimaryClick, onModalDialogSecondaryClick); } UniversalModalDialog.showMessage = function(caption, message, imageURL) { let messageHTML = "