标签自动完成截取5个结果

This commit is contained in:
joyqi 2013-10-16 17:33:19 +08:00
parent e3491d87d6
commit 9ce4283e7e

View File

@ -67,7 +67,11 @@ $(document).ready(function() {
animateDropdown : false,
hintText : '<?php _e('请输入标签名'); ?>',
noResultsText : '此标签不存在, 按回车创建',
prePopulate : tagsPre
prePopulate : tagsPre,
onResult : function (result) {
return result.slice(0, 5);
}
});
// tag autocomplete 提示宽度设置