mirror of https://gitee.com/bigwinds/arangodb
fixed print function
This commit is contained in:
parent
d308181b2b
commit
e8ccf84b05
|
@ -471,9 +471,10 @@ ModuleCache["/internal"] = new Module("/internal");
|
|||
internal.printShell.apply(internal.printShell, arguments);
|
||||
|
||||
// flush buffer
|
||||
$('#shellContent').append('<p class="shellSuccess">'
|
||||
+ internal.browserOutputBuffer
|
||||
+ '</p>');
|
||||
//$('#shellContent').append('<p class="shellSuccess">'
|
||||
// + internal.browserOutputBuffer
|
||||
// + '</p>');
|
||||
jqconsole.Write('==> ' + internal.browserOutputBuffer + '\n', 'jssuccess');
|
||||
internal.browserOutputBuffer = "";
|
||||
};
|
||||
|
||||
|
|
|
@ -96,13 +96,14 @@ var shellView = Backbone.View.extend({
|
|||
},
|
||||
evaloutput: function (data) {
|
||||
try {
|
||||
var result = eval(data);
|
||||
var result = eval(data);
|
||||
if (result !== undefined) {
|
||||
print(result);
|
||||
}
|
||||
}
|
||||
catch(e) {
|
||||
$('#shellContent').append('<p class="shellError">Error:' + e + '</p>');
|
||||
//$('#shellContent').append('<p class="shellError">Error:' + e + '</p>');
|
||||
jqconsole.Write('ReferenceError: ' + e + '\n', 'jserror');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue