summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-07-31 15:09:22 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-01 11:26:12 +0100
commitc76137e25b285f3f31c162b888cf14c8999ead07 (patch)
tree75e07a8c9a72cbb91389cfe43afc6f09a7d82e63 /bitbake/lib
parentb90a253fa669710cc202f5890d80d59559d42954 (diff)
downloadpoky-c76137e25b285f3f31c162b888cf14c8999ead07.tar.gz
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerBtn.js4
-rw-r--r--bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html7
2 files changed, 2 insertions, 9 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js
index 44bf612a58..4243c2bf01 100644
--- a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js
+++ b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js
@@ -11,8 +11,7 @@ function layerBtnsInit(ctx) {
11 var thisBtn = $(this); 11 var thisBtn = $(this);
12 12
13 libtoaster.addRmLayer(layerObj, add, function (layerDepsList){ 13 libtoaster.addRmLayer(layerObj, add, function (layerDepsList){
14 var alertMsg = $("#alert-msg"); 14 libtoaster.showChangeNotification(libtoaster.makeLayerAddRmAlertMsg(layerObj, layerDepsList, add));
15 alertMsg.html(libtoaster.makeLayerAddRmAlertMsg(layerObj, layerDepsList, add));
16 15
17 /* In-cell notification */ 16 /* In-cell notification */
18 var notification = $('<div id="temp-inline-notify" style="display: none; font-size: 11px; line-height: 1.3;" class="tooltip-inner"></div>'); 17 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) {
53 }); 52 });
54 } 53 }
55 54
56 $("#zone1alerts, #zone1alerts *").fadeIn();
57 }); 55 });
58 }); 56 });
59 57
diff --git a/bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html b/bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html
index 654cdf4bab..33aa8ce0d7 100644
--- a/bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html
+++ b/bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html
@@ -10,12 +10,7 @@
10 <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> 10 <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>
11 {% endif %} 11 {% endif %}
12</h2> 12</h2>
13<div id="zone1alerts" style="display:none"> 13
14 <div class="alert alert-info lead">
15 <button type="button" class="close" id="hide-alert">&times;</button>
16 <span id="alert-msg"></span>
17 </div>
18</div>
19{% url table_name project.id as xhr_table_url %} 14{% url table_name project.id as xhr_table_url %}
20{% include "toastertable.html" %} 15{% include "toastertable.html" %}
21 16