mirror of https://gitee.com/bigwinds/arangodb
added focus + jslint
This commit is contained in:
parent
7dcfae65a7
commit
faeba8e740
|
@ -127,7 +127,9 @@ var queryView = Backbone.View.extend({
|
||||||
//render options
|
//render options
|
||||||
$('#new-query-name').val('');
|
$('#new-query-name').val('');
|
||||||
$('#new-aql-query').modal('show');
|
$('#new-aql-query').modal('show');
|
||||||
|
setTimeout(function (){
|
||||||
$('#new-query-name').focus();
|
$('#new-query-name').focus();
|
||||||
|
},500);
|
||||||
},
|
},
|
||||||
editAQL: function () {
|
editAQL: function () {
|
||||||
if (this.customQueries.length === 0) {
|
if (this.customQueries.length === 0) {
|
||||||
|
@ -230,7 +232,7 @@ var queryView = Backbone.View.extend({
|
||||||
returnVal = v.value;
|
returnVal = v.value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return returnVal
|
return returnVal;
|
||||||
},
|
},
|
||||||
importSelected: function(e) {
|
importSelected: function(e) {
|
||||||
var editor = ace.edit("aqlEditor");
|
var editor = ace.edit("aqlEditor");
|
||||||
|
@ -246,6 +248,7 @@ var queryView = Backbone.View.extend({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
renderSelectboxes: function (modal) {
|
renderSelectboxes: function (modal) {
|
||||||
|
var selector = '';
|
||||||
if (modal === true) {
|
if (modal === true) {
|
||||||
selector = '#queryModalSelect';
|
selector = '#queryModalSelect';
|
||||||
$(selector).empty();
|
$(selector).empty();
|
||||||
|
|
Loading…
Reference in New Issue