The last parameter is optional

This commit is contained in:
Alex Tselegidis 2021-12-10 09:06:53 +01:00
parent 17b7ff6631
commit 037c3037e6

View file

@ -38,7 +38,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
* @param {String} message The message of the dialog. * @param {String} message The message of the dialog.
* @param {Array} buttons Contains the dialog buttons along with their functions. * @param {Array} buttons Contains the dialog buttons along with their functions.
*/ */
exports.displayMessageBox = function (title, message, buttons) { exports.displayMessageBox = function (title, message, buttons = null) {
if (!title) { if (!title) {
title = '- No Title Provided -'; title = '- No Title Provided -';
} }