Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2022-06-11 22:33:25 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-06-11 22:33:25 +0300
commit3e6b0abbe207d7e3994e37c112c98a17c338b646 (patch)
treecfe87f6dfd1f3df386da1b6fbe0a2f95e41a0042
parentf4659f3fa3088d2c1e42dbdeb7d1922f804964a1 (diff)
Add default values for Functions.ajaxShowMessage params
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
-rw-r--r--js/src/functions.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/functions.js b/js/src/functions.js
index dc9712136f..853487926c 100644
--- a/js/src/functions.js
+++ b/js/src/functions.js
@@ -1811,12 +1811,12 @@ Functions.updateCode = function ($base, htmlValue, rawValue) {
* This will show a message that will not disappear automatically, but it
* can be dismissed by the user after they have finished reading it.
*
- * @param {string} message string containing the message to be shown.
+ * @param {string|null} message string containing the message to be shown.
* optional, defaults to 'Loading...'
* @param {any} timeout number of milliseconds for the message to be visible
* optional, defaults to 5000. If set to 'false', the
* notification will never disappear
- * @param {string} type string to dictate the type of message shown.
+ * @param {string|null} type string to dictate the type of message shown.
* optional, defaults to normal notification.
* If set to 'error', the notification will show message
* with red background.
@@ -1826,7 +1826,7 @@ Functions.updateCode = function ($base, htmlValue, rawValue) {
* this object can be passed to Functions.ajaxRemoveMessage()
* to remove the notification
*/
-Functions.ajaxShowMessage = function (message, timeout, type) {
+Functions.ajaxShowMessage = function (message = null, timeout = null, type = null) {
var msg = message;
var newTimeOut = timeout;
/**