1
0
Fork 0

query design

This commit is contained in:
Heiko Kernbach 2013-02-22 15:38:24 +01:00
parent 9fb527a30f
commit fdecf43bde
1 changed files with 1 additions and 1 deletions

View File

@ -24,6 +24,7 @@ var queryView = Backbone.View.extend({
editor.getSession().setMode("ace/mode/javascript");
editor2.getSession().setMode("ace/mode/javascript");
editor.resize();
editor2.setValue('');
editor2.resize();
$('#aqlEditor .ace_text-input').focus();
return this;
@ -47,7 +48,6 @@ var queryView = Backbone.View.extend({
error: function(data) {
try {
var temp = JSON.parse(data.responseText);
editor2.setValue('');
editor2.setValue('[' + temp.errorNum + '] ' + temp.errorMessage);
}
catch (e) {