]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toastergui: project app build command fix
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Tue, 10 Mar 2015 17:36:32 +0000 (17:36 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Mar 2015 17:43:50 +0000 (17:43 +0000)
This patch fixes the build command in the angular
project for builds triggered from All targets page.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
lib/toaster/toastergui/static/js/projectapp.js

index 82db10781cd2145a146f9f79366c3e8f868b36c6..6b1bbb40fbde4b7f4718c86f646d9f9793997742 100644 (file)
@@ -327,7 +327,7 @@ projectApp.controller('prjCtrl', function($scope, $modal, $http, $interval, $loc
         }).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 {
@@ -652,9 +652,9 @@ projectApp.controller('prjCtrl', function($scope, $modal, $http, $interval, $loc
      */
 
     $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];
@@ -725,8 +725,9 @@ projectApp.controller('prjCtrl', function($scope, $modal, $http, $interval, $loc
         _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) {