mirror of https://gitee.com/bigwinds/arangodb
fixed a js bug
This commit is contained in:
parent
79852a79d0
commit
0d4b2c5af5
|
@ -46,9 +46,15 @@
|
|||
$('#collectionsToggle').addClass('activated');
|
||||
}
|
||||
|
||||
var length = searchOptions.searchPhrase.length;
|
||||
var length;
|
||||
|
||||
try {
|
||||
length = searchOptions.searchPhrase.length;
|
||||
}
|
||||
catch (ignore) {
|
||||
}
|
||||
$('#searchInput').val(searchOptions.searchPhrase);
|
||||
$('#searchInput').focus();
|
||||
$('#searchInput').focus();
|
||||
$('#searchInput')[0].setSelectionRange(length, length);
|
||||
|
||||
arangoHelper.fixTooltips(".icon_arangodb, .arangoicon", "left");
|
||||
|
|
Loading…
Reference in New Issue