Also remove dashes from GUI entered node IDs

This commit is contained in:
Jakob Borg 2014-05-18 22:40:25 +02:00
parent d7df11e724
commit 5c65e10875
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -317,7 +317,7 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
$scope.configInSync = false;
$('#editNode').modal('hide');
nodeCfg = $scope.currentNode;
nodeCfg.NodeID = nodeCfg.NodeID.replace(/ /g, '').trim();
nodeCfg.NodeID = nodeCfg.NodeID.replace(/ /g, '').replace(/-/g, '').trim();
nodeCfg.Addresses = nodeCfg.AddressesStr.split(',').map(function (x) { return x.trim(); });
done = false;