From ee5ac0a70976ce13a624acd70366205db57d7966 Mon Sep 17 00:00:00 2001 From: hkernbach Date: Fri, 3 Jun 2016 10:57:51 +0200 Subject: [PATCH] responsive query view --- .../aardvark/APP/frontend/js/views/queryView2.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/views/queryView2.js b/js/apps/system/_admin/aardvark/APP/frontend/js/views/queryView2.js index d2f09b406f..82cfd19ee2 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/views/queryView2.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/views/queryView2.js @@ -1475,9 +1475,12 @@ warningsFunc(data); window.progressView.hide(); - var appendSpan = function(value, icon) { + var appendSpan = function(value, icon, css) { + if (!css) { + css = ''; + } $('#outputEditorWrapper' + counter + ' .arangoToolbarTop .pull-left').append( - '' + value + '' + '' + value + '' ); }; @@ -1494,30 +1497,29 @@ if (data.extra) { if (data.extra.stats) { - console.log(data.result.length); if (data.extra.stats.writesExecuted > 0 || data.extra.stats.writesIgnored > 0) { appendSpan( data.extra.stats.writesExecuted + ' writes', 'fa-check-circle positive' ); if (data.extra.stats.writesIgnored === 0) { appendSpan( - data.extra.stats.writesIgnored + ' writes ignored', 'fa-check-circle positive' + data.extra.stats.writesIgnored + ' writes ignored', 'fa-check-circle positive', 'additional' ); } else { appendSpan( - data.extra.stats.writesIgnored + ' writes ignored', 'fa-exclamation-circle warning' + data.extra.stats.writesIgnored + ' writes ignored', 'fa-exclamation-circle warning', 'additional' ); } } if (data.extra.stats.scannedFull > 0) { appendSpan( - 'full collection scan', 'fa-exclamation-circle warning' + 'full collection scan', 'fa-exclamation-circle warning', 'additional' ); } else { appendSpan( - 'no full collection scan', 'fa-check-circle positive' + 'no full collection scan', 'fa-check-circle positive', 'additional' ); } }