Skip to content
Permalink
Browse files

Fixed a bug with quick launching servers.

  • Loading branch information...
roncli committed Jul 27, 2015
1 parent 1db6d63 commit 1268543cba267b7ae74a603b6af0f78c55eb09b5
Showing with 4 additions and 4 deletions.
  1. +1 −1 public/js/ddsn.js
  2. +3 −3 public/templates/add-server-saved.htm
@@ -566,7 +566,7 @@ var app = angular.module("ddsn", []),
};

$scope.quickLaunchServer = function(server) {
data.settings.addServer = JSON.stringify(JSON.parse(server));
data.settings.addServer = JSON.parse(JSON.stringify(server));

data.settings.addServer.server.port = 2092;
data.settings.addServer.server.gamespyport = 20143;
@@ -4,13 +4,13 @@
<tr>
<td colspan="2">Select a server to quick launch. Servers will be launched on port 2092 and GameSpy port 20143, or the first available port not in use.</td>
</tr>
<tr ng-repeat="server as data.settings.savedServers">
<tr ng-repeat="server in data.settings.savedServers">
<td class="text-right">
{{server.saveServerName}}
</td>
<td>
<button class="btn btn-success" ng-click="quickLaunchServer(server)">Quick Launch</button>
<button class="btn btn-danger" ng-click="deleteSavedServer(server)"><span class="glyphicon glyphicon-remove"></span></button>
<button class="btn btn-sm btn-success" ng-click="quickLaunchServer(server)">Quick Launch</button>
<button class="btn btn-sm btn-danger" ng-click="deleteSavedServer(server)"><span class="glyphicon glyphicon-remove"></span></button>
</td>
</tr>
</table>

0 comments on commit 1268543

Please sign in to comment.
You can’t perform that action at this time.