gui: Suggest lower case only folder ID (fixes #3128)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3353
This commit is contained in:
Jakob Borg 2016-06-27 09:39:25 +00:00 committed by Audrius Butkevicius
parent 9d16f4545d
commit 3c77b8388c
1 changed files with 1 additions and 1 deletions

View File

@ -1318,7 +1318,7 @@ angular.module('syncthing.core')
$scope.editingExisting = false;
$scope.folderEditor.$setPristine();
$http.get(urlbase + '/svc/random/string?length=10').success(function (data) {
$scope.currentFolder.id = data.random.substr(0, 5) + '-' + data.random.substr(5, 5);
$scope.currentFolder.id = (data.random.substr(0, 5) + '-' + data.random.substr(5, 5)).toLowerCase();
$('#editFolder').modal();
});
};