+function mysliceAlert(msg) {
+ $('#myslice-message').find('.message').text(msg);
+ $('#myslice-message').fadeIn('fast');
+}
/* Table initialisation */
$(document).ready(function() {
- /* Testbeds list */
- $("div#testbed-list").ready(function() {
- $("table#testbedList").load("/table/network/", { "fields" : ["network_hrn","description"], "options": ["checkbox"] }, function() {
-
- });
- });
+
$("#objectList").load("/table/resource/", {"fields" : ["hostname","hrn","country","type"], "options": ["checkbox"] }, function(data) {
$(this).dataTable( {
var el = $('*[data-key="'+myslice.pending[i]+'"]');
el.addClass("active");
el.find('input[type=checkbox]').prop('checked', true);
+ if (myslice.count() > 0) {
+ $('#badge-pending').text(myslice.count());
+ $('#badge-pending').show();
+ }
}
}
} );