mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-17 02:25:14 +00:00
fix '~' completion in add folder (fix #1478)
This commit is contained in:
parent
7df9c1b6e4
commit
b95a6ccf80
1
AUTHORS
1
AUTHORS
@ -21,6 +21,7 @@ Emil Hessman <emil@hessman.se>
|
|||||||
Federico Castagnini <federico.castagnini@gmail.com>
|
Federico Castagnini <federico.castagnini@gmail.com>
|
||||||
Felix Ableitner <me@nutomic.com>
|
Felix Ableitner <me@nutomic.com>
|
||||||
Felix Unterpaintner <bigbear2nd@gmail.com>
|
Felix Unterpaintner <bigbear2nd@gmail.com>
|
||||||
|
Francois-Xavier Gsell <fxgsell@gmail.com>
|
||||||
Gilli Sigurdsson <gilli@vx.is>
|
Gilli Sigurdsson <gilli@vx.is>
|
||||||
Jakob Borg <jakob@nym.se>
|
Jakob Borg <jakob@nym.se>
|
||||||
James Patterson <jamespatterson@operamail.com> <jpjp@users.noreply.github.com>
|
James Patterson <jamespatterson@operamail.com> <jpjp@users.noreply.github.com>
|
||||||
|
@ -901,6 +901,9 @@ angular.module('syncthing.core')
|
|||||||
$scope.directoryList = [];
|
$scope.directoryList = [];
|
||||||
|
|
||||||
$scope.$watch('currentFolder.path', function (newvalue) {
|
$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', {
|
$http.get(urlbase + '/system/browse', {
|
||||||
params: { current: newvalue }
|
params: { current: newvalue }
|
||||||
}).success(function (data) {
|
}).success(function (data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user