Browse Source

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.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Michael Wood 8 years ago
parent
commit
9d760462de
1 changed files with 8 additions and 0 deletions
  1. 8 0
      lib/toaster/toastergui/static/js/libtoaster.js

+ 8 - 0
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,
   };
 })();