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