From 037c3037e6a0825ae7f31eda5b0adf7e52f6a5f2 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 10 Dec 2021 09:06:53 +0100 Subject: [PATCH] The last parameter is optional --- assets/js/utils/general_functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/utils/general_functions.js b/assets/js/utils/general_functions.js index 9ae6c508..b08f6dc3 100755 --- a/assets/js/utils/general_functions.js +++ b/assets/js/utils/general_functions.js @@ -38,7 +38,7 @@ window.GeneralFunctions = window.GeneralFunctions || {}; * @param {String} message The message of the dialog. * @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) { title = '- No Title Provided -'; }