Matrix Support
This commit is contained in:
@ -617,9 +617,9 @@ $(function() {
|
|||||||
var printOutput = function(output, colorize, index) {
|
var printOutput = function(output, colorize, index) {
|
||||||
var element = findOrCreateOutputElement(index);
|
var element = findOrCreateOutputElement(index);
|
||||||
// disable streaming if desired
|
// disable streaming if desired
|
||||||
if (output.stdout && output.stdout.length >= 20 && output.stdout.substr(0,20) == "##DISABLESTREAMING##"){
|
//if (output.stdout && output.stdout.length >= 20 && output.stdout.substr(0,20) == "##DISABLESTREAMING##"){
|
||||||
output_mode_is_streaming = false;
|
// output_mode_is_streaming = false;
|
||||||
}
|
//}
|
||||||
if (!colorize) {
|
if (!colorize) {
|
||||||
var stream = _.sortBy([output.stderr || '', output.stdout || ''], function(stream) {
|
var stream = _.sortBy([output.stderr || '', output.stdout || ''], function(stream) {
|
||||||
return stream.length;
|
return stream.length;
|
||||||
@ -628,14 +628,14 @@ $(function() {
|
|||||||
} else if (output.stderr) {
|
} else if (output.stderr) {
|
||||||
element.addClass('text-warning').append(output.stderr);
|
element.addClass('text-warning').append(output.stderr);
|
||||||
} else if (output.stdout) {
|
} else if (output.stdout) {
|
||||||
if (output_mode_is_streaming){
|
//if (output_mode_is_streaming){
|
||||||
element.addClass('text-success').append(output.stdout);
|
element.addClass('text-success').append(output.stdout);
|
||||||
}else{
|
//}else{
|
||||||
element.addClass('text-success');
|
// element.addClass('text-success');
|
||||||
element.data('content_buffer' , element.data('content_buffer') + output.stdout);
|
// element.data('content_buffer' , element.data('content_buffer') + output.stdout);
|
||||||
}
|
//}
|
||||||
} else if (output.code && output.code == '200' && output_mode_is_streaming === false){
|
//} else if (output.code && output.code == '200'){
|
||||||
element.append( element.data('content_buffer'));
|
// element.append( element.data('content_buffer'));
|
||||||
} else {
|
} else {
|
||||||
element.addClass('text-muted').text($('#output').data('message-no-output'));
|
element.addClass('text-muted').text($('#output').data('message-no-output'));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user