[bitbake-devel] [PATCH 07/22] bitbake: toastergui: libtoaster Add show change notification function

Ed Bartosh ed.bartosh at linux.intel.com
Fri Jul 31 12:09:08 UTC 2015


From: Michael Wood <michael.g.wood at intel.com>

Now that we have a change notification that is global move this
functionality to libtoaster for shared use.

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 lib/toaster/toastergui/static/js/libtoaster.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/toaster/toastergui/static/js/libtoaster.js b/lib/toaster/toastergui/static/js/libtoaster.js
index 0000c57..afd665c 100644
--- a/lib/toaster/toastergui/static/js/libtoaster.js
+++ b/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,
   };
 })();
 
-- 
2.1.4




More information about the bitbake-devel mailing list