bitbake: toastergui: layerBtn use libtoaster for change notification

Use the common functionality for change notifications.

(Bitbake rev: 79af72e1b80b033a37992095b2e97449de5ebd8b)

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:22 +03:00
committed by Richard Purdie
parent b90a253fa6
commit c76137e25b
2 changed files with 2 additions and 9 deletions

View File

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

View File

@@ -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">&times;</button>
<span id="alert-msg"></span>
</div>
</div>
{% url table_name project.id as xhr_table_url %}
{% include "toastertable.html" %}