Refactored the device-view.js script

revert-70aa11f8
Dileesha Rajapakse 7 years ago
parent 2bea7309fd
commit d35fa791aa

@ -49,18 +49,15 @@ $(document).ready(function() {
function getLogStatusIcon(entry) { function getLogStatusIcon(entry) {
switch (entry) { switch (entry) {
case 'COMPLETED': case 'COMPLETED':
return 'fw-success' return 'fw-success';
break;
case 'PENDING': case 'PENDING':
return 'fw-pending' return 'fw-pending';
break;
case 'ERROR': case 'ERROR':
return 'fw-error' return 'fw-error';
break;
default: default:
return 'fw-info' return 'fw-info'
} }
}; }
function loadOperationsLog(update) { function loadOperationsLog(update) {
var operationsLogTable = "#operation-log"; var operationsLogTable = "#operation-log";
@ -182,18 +179,15 @@ function loadOperationsLog(update) {
function getLogStatusIcon(entry) { function getLogStatusIcon(entry) {
switch (entry) { switch (entry) {
case 'COMPLETED': case 'COMPLETED':
return 'fw-success' return 'fw-success';
break;
case 'PENDING': case 'PENDING':
return 'fw-pending' return 'fw-pending';
break;
case 'ERROR': case 'ERROR':
return 'fw-error' return 'fw-error';
break;
default: default:
return 'fw-info' return 'fw-info'
} }
}; }
} }
} }

Loading…
Cancel
Save