1
0
Fork 0

added focus + jslint

This commit is contained in:
Heiko Kernbach 2013-07-18 12:38:59 +02:00
parent 7dcfae65a7
commit faeba8e740
1 changed files with 5 additions and 2 deletions

View File

@ -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();