fix '~' completion in add folder (fix #1478)

This commit is contained in:
Francois-Xavier Gsell committed 2015-04-10 15:42:52 +08:00
1 parent 7df9c1b6e4
commit b95a6ccf80
2 files changed
+4

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ Emil Hessman <[email protected]>
Federico Castagnini <[email protected]>
Felix Ableitner <[email protected]>
Felix Unterpaintner <[email protected]>
Francois-Xavier Gsell <[email protected]>
Gilli Sigurdsson <[email protected]>
Jakob Borg <[email protected]>
James Patterson <[email protected]> <[email protected]>
@@ -901,6 +901,9 @@ angular.module('syncthing.core')
$scope.directoryList = [];
$scope.$watch('currentFolder.path', function (newvalue) {
if (newvalue && newvalue.trim().charAt(0) == '~') {
$scope.currentFolder.path = $scope.system.tilde + newvalue.trim().substring(1)
}
$http.get(urlbase + '/system/browse', {
params: { current: newvalue }
}).success(function (data) {