}).error(function(_data, _status, _headers, _config) {
if (_status === 0) {
// the server has gone away
- alert("The server is not responding. The application will terminate now");
+ // alert("The server is not responding. The application will terminate now");
$interval.cancel($scope.pollHandle);
}
else {
*/
$scope.updateDisplayWithCommands = function() {
- cmd = $location.path();
function _cmdExecuteWithParam(param, f) {
+ var cmd = $location.path();
if (cmd.indexOf(param) === 0) {
if (cmd.indexOf("=") > -1) {
var parameter = cmd.split("=", 2)[1];
_cmdExecuteWithParam("/targetbuild=", function (targets) {
var oldTargetName = $scope.targetName;
$scope.targetName = targets.split(",").join(" ");
- $scope.targetNamedBuild();
+ $scope.buildNamedTarget();
$scope.targetName = oldTargetName;
+ $location.path('');
});
_cmdExecuteWithParam("/machineselect=", function (machine) {