From c76137e25b285f3f31c162b888cf14c8999ead07 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 31 Jul 2015 15:09:22 +0300 Subject: bitbake: toastergui: layerBtn use libtoaster for change notification Use the common functionality for change notifications. (Bitbake rev: 79af72e1b80b033a37992095b2e97449de5ebd8b) Signed-off-by: Michael Wood Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/layerBtn.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/static') diff --git a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js index 44bf612a58..4243c2bf01 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js @@ -11,8 +11,7 @@ function layerBtnsInit(ctx) { var thisBtn = $(this); libtoaster.addRmLayer(layerObj, add, function (layerDepsList){ - var alertMsg = $("#alert-msg"); - alertMsg.html(libtoaster.makeLayerAddRmAlertMsg(layerObj, layerDepsList, add)); + libtoaster.showChangeNotification(libtoaster.makeLayerAddRmAlertMsg(layerObj, layerDepsList, add)); /* In-cell notification */ var notification = $(''); @@ -53,7 +52,6 @@ function layerBtnsInit(ctx) { }); } - $("#zone1alerts, #zone1alerts *").fadeIn(); }); }); -- cgit v1.2.3-54-g00ecf