From 9ce4283e7ee7d6b9cd72d7eee3e49068353fdd31 Mon Sep 17 00:00:00 2001 From: joyqi Date: Wed, 16 Oct 2013 17:33:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E8=87=AA=E5=8A=A8=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E6=88=AA=E5=8F=965=E4=B8=AA=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/write-js.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/write-js.php b/admin/write-js.php index 576d9992..4648d999 100644 --- a/admin/write-js.php +++ b/admin/write-js.php @@ -67,7 +67,11 @@ $(document).ready(function() { animateDropdown : false, hintText : '', noResultsText : '此标签不存在, 按回车创建', - prePopulate : tagsPre + prePopulate : tagsPre, + + onResult : function (result) { + return result.slice(0, 5); + } }); // tag autocomplete 提示宽度设置