Fix minor formatting issue

merge-requests/1/head
Rasika Perera 7 years ago
parent f3da8d4a57
commit b04af49594

@ -109,17 +109,17 @@ $.fn.datatables_extended = function (settings) {
$(column).each(function () { $(column).each(function () {
var i; var i;
if (filterColumn.eq(column.index()).hasClass('data-status')) { if (filterColumn.eq(column.index()).hasClass('data-status')) {
for(i = 0; i < cachedFilterRes.status.length; i++){ for (i = 0; i < cachedFilterRes.status.length; i++) {
var status = cachedFilterRes.status[i]; var status = cachedFilterRes.status[i];
select.append('<option value="' + status + '">' + status + '</option>') select.append('<option value="' + status + '">' + status + '</option>')
} }
} else if (filterColumn.eq(column.index()).hasClass('data-ownership')) { } else if (filterColumn.eq(column.index()).hasClass('data-ownership')) {
for(i = 0; i < cachedFilterRes.ownership.length; i++){ for (i = 0; i < cachedFilterRes.ownership.length; i++) {
var ownership = cachedFilterRes.ownership[i]; var ownership = cachedFilterRes.ownership[i];
select.append('<option value="' + ownership + '">' + ownership + '</option>') select.append('<option value="' + ownership + '">' + ownership + '</option>')
} }
} else if (filterColumn.eq(column.index()).hasClass('data-platform')) { } else if (filterColumn.eq(column.index()).hasClass('data-platform')) {
for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var deviceTypes = cachedFilterRes.deviceTypes[i]; var deviceTypes = cachedFilterRes.deviceTypes[i];
var name = deviceTypes; var name = deviceTypes;
var value = deviceTypes; var value = deviceTypes;
@ -130,12 +130,12 @@ $.fn.datatables_extended = function (settings) {
select.append('<option value="' + value + '">' + name + '</option>') select.append('<option value="' + value + '">' + name + '</option>')
} }
} else if (filterColumn.eq(column.index()).hasClass('data-compliance')) { } else if (filterColumn.eq(column.index()).hasClass('data-compliance')) {
for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var compliance = cachedFilterRes.compliance[i]; var compliance = cachedFilterRes.compliance[i];
select.append('<option value="' + compliance + '">' + compliance + '</option>') select.append('<option value="' + compliance + '">' + compliance + '</option>')
} }
} else if (filterColumn.eq(column.index()).hasClass('data-dep-status')) { } else if (filterColumn.eq(column.index()).hasClass('data-dep-status')) {
for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var depStatus = cachedFilterRes.depStatus[i]; var depStatus = cachedFilterRes.depStatus[i];
select.append('<option value="' + depStatus + '">' + depStatus + '</option>') select.append('<option value="' + depStatus + '">' + depStatus + '</option>')
} }

@ -177,17 +177,17 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
$(column).each(function () { $(column).each(function () {
var i; var i;
if (filterColumn.eq(column.index()).hasClass('data-status')) { if (filterColumn.eq(column.index()).hasClass('data-status')) {
for(i = 0; i < cachedFilterRes.status.length; i++){ for (i = 0; i < cachedFilterRes.status.length; i++) {
var status = cachedFilterRes.status[i]; var status = cachedFilterRes.status[i];
select.append('<option value="' + status + '">' + status + '</option>') select.append('<option value="' + status + '">' + status + '</option>')
} }
} else if (filterColumn.eq(column.index()).hasClass('data-ownership')) { } else if (filterColumn.eq(column.index()).hasClass('data-ownership')) {
for(i = 0; i < cachedFilterRes.ownership.length; i++){ for (i = 0; i < cachedFilterRes.ownership.length; i++) {
var ownership = cachedFilterRes.ownership[i]; var ownership = cachedFilterRes.ownership[i];
select.append('<option value="' + ownership + '">' + ownership + '</option>') select.append('<option value="' + ownership + '">' + ownership + '</option>')
} }
} else if (filterColumn.eq(column.index()).hasClass('data-platform')) { } else if (filterColumn.eq(column.index()).hasClass('data-platform')) {
for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var deviceTypes = cachedFilterRes.deviceTypes[i]; var deviceTypes = cachedFilterRes.deviceTypes[i];
var name = deviceTypes; var name = deviceTypes;
var value = deviceTypes; var value = deviceTypes;
@ -198,12 +198,12 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
select.append('<option value="' + value + '">' + name + '</option>') select.append('<option value="' + value + '">' + name + '</option>')
} }
} else if (filterColumn.eq(column.index()).hasClass('data-compliance')) { } else if (filterColumn.eq(column.index()).hasClass('data-compliance')) {
for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var compliance = cachedFilterRes.compliance[i]; var compliance = cachedFilterRes.compliance[i];
select.append('<option value="' + compliance + '">' + compliance + '</option>') select.append('<option value="' + compliance + '">' + compliance + '</option>')
} }
} else if (filterColumn.eq(column.index()).hasClass('data-dep-status')) { } else if (filterColumn.eq(column.index()).hasClass('data-dep-status')) {
for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var depStatus = cachedFilterRes.depStatus[i]; var depStatus = cachedFilterRes.depStatus[i];
select.append('<option value="' + depStatus + '">' + depStatus + '</option>') select.append('<option value="' + depStatus + '">' + depStatus + '</option>')
} }

Loading…
Cancel
Save