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 <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood
2015-07-31 15:09:08 +03:00
committed by Richard Purdie
parent 1b13222e1c
commit 8ff56b0fb3

View File

@@ -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,
};
})();