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);