'));
+ imgFS.append(imgAttr);
+
var query = window.location.search;
var args = query.substr(1).split('&');
var parms = new Object();
@@ -479,14 +502,15 @@ function appendProvision4Url(container){
if (parms['tftpserver'])
tftpserver = parms['tftpserver'];
- container.append('');
- container.append('');
- container.append('');
- container.append( '');
- container.append('');
- container.append('');
- container.append('');
- container.append('');
+ nodeAttr.append('');
+
+ imgAttr.append('');
+ imgAttr.append('');
+ imgAttr.append( '');
+ imgAttr.append('');
+ imgAttr.append('');
+ imgAttr.append('');
+ imgAttr.append('');
return;
}
@@ -713,7 +737,7 @@ function createNodesTable(group, outId) {
// Create table to hold nodes
var nTable = $('
');
- var tHead = $('
Node
');
+ var tHead = $('
Node
');
nTable.append(tHead);
var tBody = $('');
nTable.append(tBody);
@@ -730,7 +754,7 @@ function createNodesTable(group, outId) {
outId.empty().append(nTable);
- if (index > 10)
+ if (nodes.length > 10)
outId.css('height', '300px');
else
outId.css('height', 'auto');
@@ -760,4 +784,22 @@ function getCheckedByObj(obj) {
}
return str;
+}
+
+/**
+ * Select all checkboxes in the table
+ *
+ * @param event
+ * Event on element
+ * @param obj
+ * Object triggering event
+ * @return Nothing
+ */
+function selectAll4Table(event, obj) {
+ // Get datatable ID
+ // This will ascend from
+ var tableObj = obj.parents('table').find('tbody');
+ var status = obj.attr('checked');
+ tableObj.find(' :checkbox').attr('checked', status);
+ event.stopPropagation();
}
\ No newline at end of file