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 +--- .../toaster/toastergui/templates/generic-toastertable-page.html | 7 +------ 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'bitbake/lib') 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(); }); }); diff --git a/bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html b/bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html index 654cdf4bab..33aa8ce0d7 100644 --- a/bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html +++ b/bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html @@ -10,12 +10,7 @@ {% endif %} - + {% url table_name project.id as xhr_table_url %} {% include "toastertable.html" %} -- cgit v1.2.3-54-g00ecf