kopia lustrzana https://github.com/cyoung/stratux
Porównaj commity
2 Commity
ab49130e70
...
b51bc6e079
Autor | SHA1 | Data |
---|---|---|
Yury V. Zaytsev | b51bc6e079 | |
Yury V. Zaytsev | 32944b15ed |
|
@ -349,9 +349,6 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) {
|
|||
|
||||
// Update theme
|
||||
$scope.$parent.updateTheme($scope.DarkMode);
|
||||
|
||||
|
||||
$scope.CountryCodeList = countryCodes;
|
||||
}
|
||||
|
||||
function getSettings() {
|
||||
|
@ -612,7 +609,7 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) {
|
|||
|
||||
if (($scope.WiFiSSID === undefined) || ($scope.WiFiSSID === null) || !isValidSSID($scope.WiFiSSID)) {
|
||||
$scope.WiFiErrors.WiFiSSID = "Your Network Name(\"SSID\") must be at least 1 character " +
|
||||
"but not more than 32 characters. It can only contain a-z, A-Z, 0-9, _ or -.";
|
||||
"but not more than 32 characters. It can only contain a-z, A-Z, 0-9, _ or '-.";
|
||||
$scope.WiFiErrors.Errors = true;
|
||||
}
|
||||
|
||||
|
@ -692,7 +689,7 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) {
|
|||
}
|
||||
}
|
||||
|
||||
function isValidSSID(str) { return /^[a-zA-Z0-9()! \._-]{1,32}$/g.test(str); }
|
||||
function isValidSSID(str) { return /^[a-zA-Z0-9()! \._'-]{1,32}$/g.test(str); }
|
||||
function isValidWPA(str) { return /^[\u0020-\u007e]{8,63}$/g.test(str); }
|
||||
function isValidPin(str) { return /^([\d]{4}|[\d]{8})$/g.test(str); }
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue