From: Michael Wood Date: Tue, 21 Apr 2015 19:29:46 +0000 (+0100) Subject: bitbake: toaster: Add links to the layer add notification X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=286da989d98455b7dea166713fe48c679afbd3d8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: toaster: Add links to the layer add notification Adds links to the layer details for the layer that has just been removed or added (Bitbake rev: 3b323af501f7ec81cce34adb4ea86a7d6599e60a) Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 1cf1693ddee..6bf915d15a7 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -261,7 +261,7 @@ var libtoaster = (function (){ var alertMsg; if (layerDepsList.length > 0 && add === true) { - alertMsg = $("You have added "+(layerDepsList.length+1)+" layers to : and its dependencies "); + alertMsg = $("You have added "+(layerDepsList.length+1)+" layers to : and its dependencies "); /* Build the layer deps list */ layerDepsList.map(function(layer, i){ @@ -277,12 +277,13 @@ var libtoaster = (function (){ alertMsg.append(link); }); } else if (layerDepsList.length === 0 && add === true) { - alertMsg = $("You have added 1 layer to : "); + alertMsg = $("You have added 1 layer to : "); } else if (add === false) { - alertMsg = $("You have deleted 1 layer from : "); + alertMsg = $("You have deleted 1 layer from : "); } alertMsg.children("#layer-affected-name").text(layer.name); + alertMsg.children("#layer-affected-name").attr("href", layer.url); alertMsg.children("#project-affected-name").text(libtoaster.ctx.projectName); alertMsg.children("#project-affected-name").attr("href", libtoaster.ctx.projectPageUrl);