From 286da989d98455b7dea166713fe48c679afbd3d8 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 21 Apr 2015 20:29:46 +0100 Subject: 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 --- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 1cf1693dde..6bf915d15a 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); -- cgit v1.2.3-54-g00ecf