diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-02-24 17:20:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-24 23:35:44 +0000 |
commit | 1ea940f920371939527353061664b927243a7233 (patch) | |
tree | eceb05e9153698f6409c44f7f27a1e551229cff0 /bitbake/lib/toaster/toastergui/static/js/projectapp.js | |
parent | 1e0e700f4b52465ee0afd5b67222785b9a1a0055 (diff) | |
download | poky-1ea940f920371939527353061664b927243a7233.tar.gz |
bitbake: toaster: Add machine selection notification
This adds a notification to the project page to notify users of the
change in project configuration.
(Bitbake rev: fa5343cf867586c0e42517dd2ed0ec5a4c28c408)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/projectapp.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/projectapp.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projectapp.js b/bitbake/lib/toaster/toastergui/static/js/projectapp.js index 4d00f40ff1..df811fb4a3 100644 --- a/bitbake/lib/toaster/toastergui/static/js/projectapp.js +++ b/bitbake/lib/toaster/toastergui/static/js/projectapp.js | |||
@@ -665,6 +665,15 @@ projectApp.controller('prjCtrl', function($scope, $modal, $http, $interval, $loc | |||
665 | "\">select targets</a> you want to build.", "alert-success"); | 665 | "\">select targets</a> you want to build.", "alert-success"); |
666 | }); | 666 | }); |
667 | 667 | ||
668 | _cmdExecuteWithParam("/machineselected", function () { | ||
669 | $scope.displayAlert($scope.zone2alerts, "You have changed the machine to: <strong>" + $scope.machine.name + "</strong>", "alert-info"); | ||
670 | var machineDistro = angular.element("#machine-distro"); | ||
671 | |||
672 | angular.element("html, body").animate({ scrollTop: machineDistro.position().top }, 700).promise().done(function() { | ||
673 | $animate.addClass(machineDistro, "machines-highlight"); | ||
674 | }); | ||
675 | }); | ||
676 | |||
668 | _cmdExecuteWithParam("/layerimported", function (layer) { | 677 | _cmdExecuteWithParam("/layerimported", function (layer) { |
669 | var imported = $cookieStore.get("layer-imported-alert"); | 678 | var imported = $cookieStore.get("layer-imported-alert"); |
670 | var text; | 679 | var text; |