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:
Diffstat (limited to 'js/src/config.js')
-rw-r--r--js/src/config.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/src/config.js b/js/src/config.js
index c1d343d4f2..0a028c08ce 100644
--- a/js/src/config.js
+++ b/js/src/config.js
@@ -26,7 +26,7 @@ window.Config.isStorageSupported = (type, warn = false) => {
} catch (error) {
// Not supported
if (warn) {
- Functions.ajaxShowMessage(Messages.strNoLocalStorage, false);
+ Functions.ajaxShowMessage(window.Messages.strNoLocalStorage, false);
}
}
return false;
@@ -250,7 +250,7 @@ window.validators = {
return true;
}
var result = this.value !== '0' && window.validators.regExpNumeric.test(this.value);
- return result ? true : Messages.error_nan_p;
+ return result ? true : window.Messages.error_nan_p;
},
/**
* Validates non-negative number
@@ -264,7 +264,7 @@ window.validators = {
return true;
}
var result = window.validators.regExpNumeric.test(this.value);
- return result ? true : Messages.error_nan_nneg;
+ return result ? true : window.Messages.error_nan_nneg;
},
/**
* Validates port number
@@ -276,7 +276,7 @@ window.validators = {
return true;
}
var result = window.validators.regExpNumeric.test(this.value) && this.value !== '0';
- return result && this.value <= 65535 ? true : Messages.error_incorrect_port;
+ return result && this.value <= 65535 ? true : window.Messages.error_incorrect_port;
},
/**
* Validates value according to given regular expression
@@ -293,7 +293,7 @@ window.validators = {
// convert PCRE regexp
var parts = regexp.match(window.validators.regExpPcreExtract);
var valid = this.value.match(new RegExp(parts[2], parts[3])) !== null;
- return valid ? true : Messages.error_invalid_value;
+ return valid ? true : window.Messages.error_invalid_value;
},
/**
* Validates upper bound for numeric inputs
@@ -308,7 +308,7 @@ window.validators = {
if (isNaN(val)) {
return true;
}
- return val <= maxValue ? true : Functions.sprintf(Messages.error_value_lte, maxValue);
+ return val <= maxValue ? true : Functions.sprintf(window.Messages.error_value_lte, maxValue);
},
// field validators
field: {},
@@ -678,7 +678,7 @@ function savePrefsToLocalStorage (form) {
*/
function updatePrefsDate () {
var d = new Date(window.localStorage.configMtimeLocal);
- var msg = Messages.strSavedOn.replace(
+ var msg = window.Messages.strSavedOn.replace(
'@DATE@',
Functions.formatDateTime(d)
);