Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E1801E00712; Mon, 23 Feb 2015 10:21:17 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B6C4CE006E9 for ; Mon, 23 Feb 2015 10:21:10 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 23 Feb 2015 10:21:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,632,1418112000"; d="scan'208";a="655997071" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by orsmga001.jf.intel.com with ESMTP; 23 Feb 2015 10:21:09 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.236]) by IRSMSX154.ger.corp.intel.com ([169.254.12.237]) with mapi id 14.03.0195.001; Mon, 23 Feb 2015 18:21:06 +0000 From: "Barros Pena, Belen" To: "Wood, Michael G" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH V2] bitbake: toaster: Add machine selection notification Thread-Index: AQHQT5V9Q1jylGpal0KYljKurZqkPg== Date: Mon, 23 Feb 2015 18:21:06 +0000 Message-ID: References: <1424701718-10992-1-git-send-email-michael.g.wood@intel.com> <1424709191-17125-1-git-send-email-michael.g.wood@intel.com> In-Reply-To: <1424709191-17125-1-git-send-email-michael.g.wood@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.7.141117 x-originating-ip: [10.237.224.31] MIME-Version: 1.0 Subject: Re: [PATCH V2] bitbake: toaster: Add machine selection notification X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2015 18:21:18 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <294474FFFCFDE84E881F3C870D163778@intel.com> Content-Transfer-Encoding: quoted-printable Looks good to me now. Thanks! Bel=E9n On 23/02/2015 16:33, "Michael Wood" wrote: >This adds a notification to the project page to notify users of the >change in project configuration. > >Signed-off-by: Michael Wood >--- > bitbake/lib/toaster/toastergui/static/css/default.css | 6 ++++++ > bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 2 +- > bitbake/lib/toaster/toastergui/static/js/machines.js | 3 +-- > bitbake/lib/toaster/toastergui/static/js/projectapp.js | 9 +++++++++ > 4 files changed, 17 insertions(+), 3 deletions(-) > >diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css >b/bitbake/lib/toaster/toastergui/static/css/default.css >index 86cf67a..2c9b1aa 100644 >--- a/bitbake/lib/toaster/toastergui/static/css/default.css >+++ b/bitbake/lib/toaster/toastergui/static/css/default.css >@@ -236,4 +236,10 @@ div.add-deps { margin-top: 15px; } > .animate-repeat.ng-enter.ng-enter-active { > opacity:1; > } >+ >+@keyframes machines-fade { 0% { background-color: #D9EDF7; } 25% { >background-color: #D9EDF7; } 100% { background-color: white; } } >+@-webkit-keyframes machines-fade { 0% { background-color: #D9EDF7; } 25% >{ background-color: #D9EDF7; } 100% { background-color: white; } } >+ >+.machines-highlight { -webkit-animation: machines-fade 7s 1; >-moz-animation: machines-fade 7s 1; animation: machines-fade 7s 1; } >+ > .tab-pane table { margin-top: 10px; } >diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js >b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js >index 2e713d5..22c40d9 100644 >--- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js >+++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js >@@ -133,7 +133,7 @@ function layerDetailsPageInit (ctx) { > var data =3D { machineName : $(this).data('machine-name') }; > libtoaster.editProject(ctx.xhrEditProjectUrl, ctx.projectId, data, > function (){ >- window.location.replace(ctx.projectPageUrl); >+ window.location.replace(ctx.projectPageUrl+"#/machineselected"); > }, null); > }); >=20 >diff --git a/bitbake/lib/toaster/toastergui/static/js/machines.js >b/bitbake/lib/toaster/toastergui/static/js/machines.js >index ee8c980..973a037 100644 >--- a/bitbake/lib/toaster/toastergui/static/js/machines.js >+++ b/bitbake/lib/toaster/toastergui/static/js/machines.js >@@ -77,7 +77,6 @@ function machinesPageInit (ctx) { > show_layer_deps_modal(ctx.projectId, layer, data.list, null, >null, true, function () { > /* Success add deps and layer */ > setLayerInCurrentPrj(btn, data.list); >- console.log ("TODO SUCCESS"); > }); > } > }, null); >@@ -87,7 +86,7 @@ function machinesPageInit (ctx) { > var data =3D { machineName : $(this).data('machine-name') }; > libtoaster.editProject(ctx.xhrEditProjectUrl, ctx.projectId, data, > function (){ >- window.location.replace(ctx.projectPageUrl); >+ window.location.replace(ctx.projectPageUrl+"#/machineselected"); > }, null); > }); >=20 >diff --git a/bitbake/lib/toaster/toastergui/static/js/projectapp.js >b/bitbake/lib/toaster/toastergui/static/js/projectapp.js >index 4d00f40..df811fb 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 > "\">select targets you want to build.", >"alert-success"); > }); >=20 >+ _cmdExecuteWithParam("/machineselected", function () { >+ $scope.displayAlert($scope.zone2alerts, "You have changed >the machine to: " + $scope.machine.name + "", >"alert-info"); >+ var machineDistro =3D angular.element("#machine-distro"); >+ >+ angular.element("html, body").animate({ scrollTop: >machineDistro.position().top }, 700).promise().done(function() { >+ $animate.addClass(machineDistro, "machines-highlight"); >+ }); >+ }); >+ > _cmdExecuteWithParam("/layerimported", function (layer) { > var imported =3D $cookieStore.get("layer-imported-alert"); > var text; >--=20 >2.1.0 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster