[bitbake-devel] [PATCH 21/22] bitbake: toastergui: layerBtn use libtoaster for change notification
Ed Bartosh
ed.bartosh at linux.intel.com
Fri Jul 31 12:09:22 UTC 2015
From: Michael Wood <michael.g.wood at intel.com>
Use the common functionality for change notifications.
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/layerBtn.js | 4 +---
lib/toaster/toastergui/templates/generic-toastertable-page.html | 7 +------
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/lib/toaster/toastergui/static/js/layerBtn.js b/lib/toaster/toastergui/static/js/layerBtn.js
index 44bf612..4243c2b 100644
--- a/lib/toaster/toastergui/static/js/layerBtn.js
+++ b/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 = $('<div id="temp-inline-notify" style="display: none; font-size: 11px; line-height: 1.3;" class="tooltip-inner"></div>');
@@ -53,7 +52,6 @@ function layerBtnsInit(ctx) {
});
}
- $("#zone1alerts, #zone1alerts *").fadeIn();
});
});
diff --git a/lib/toaster/toastergui/templates/generic-toastertable-page.html b/lib/toaster/toastergui/templates/generic-toastertable-page.html
index 654cdf4..33aa8ce 100644
--- a/lib/toaster/toastergui/templates/generic-toastertable-page.html
+++ b/lib/toaster/toastergui/templates/generic-toastertable-page.html
@@ -10,12 +10,7 @@
<i class="icon-question-sign get-help heading-help" title="This page lists {{title}} compatible with the release selected for this project, which is {{project.release.description}}"></i>
{% endif %}
</h2>
-<div id="zone1alerts" style="display:none">
- <div class="alert alert-info lead">
- <button type="button" class="close" id="hide-alert">×</button>
- <span id="alert-msg"></span>
- </div>
-</div>
+
{% url table_name project.id as xhr_table_url %}
{% include "toastertable.html" %}
--
2.1.4
More information about the bitbake-devel
mailing list