16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 |
||
$(function() {
var editbox
api = new mw.Api(),
autocomplete = false;
//console.log('Autocompletion begins.');
autocomplete = true;
editbox.on('input', function() {
if(!prefix) {
hideHints();
else {
setTimeout(function() {
updateHints(
}, 500);
}
$('#autocompleteHints').remove();
};
var updateHints = function(
var hints;
if( $('#autocompleteHints').length ) {
};
editbox = $(this);
if(e.keyCode == 9) {
e.preventDefault();
if(prefix && !autocomplete) {
|