From 8ff56b0fb3c3a946644c00b0f49a4388f0180b44 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 31 Jul 2015 15:09:08 +0300 Subject: bitbake: toastergui: libtoaster Add show change notification function Now that we have a change notification that is global move this functionality to libtoaster for shared use. (Bitbake rev: 9d760462de99cb8729b7e0db773e77d4cd508733) Signed-off-by: Michael Wood Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bitbake/lib/toaster/toastergui/static') diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 0000c572ac..afd665ca99 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -292,6 +292,13 @@ var libtoaster = (function (){ return alertMsg.html(); } + function _showChangeNotification(message){ + var alertMsg = $("#change-notification-msg"); + + alertMsg.html(message); + $("#change-notification, #change-notification *").fadeIn(); + } + return { reload_params : reload_params, @@ -306,6 +313,7 @@ var libtoaster = (function (){ dumpsUrlParams : _dumpsUrlParams, addRmLayer : _addRmLayer, makeLayerAddRmAlertMsg : _makeLayerAddRmAlertMsg, + showChangeNotification : _showChangeNotification, }; })(); -- cgit v1.2.3-54-g00ecf