From 8b5dfb9fba4af9054a28f2dcf4c5b5af87ebc5e4 Mon Sep 17 00:00:00 2001 From: fen Date: Sun, 13 Oct 2013 18:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=A0=87=E7=AD=BE=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=AE=8C=E6=88=90=E5=AE=BD=E5=BA=A6=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/css/style.css | 5 ++--- admin/write-js.php | 5 ++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/admin/css/style.css b/admin/css/style.css index d9e11e78..c7d75b3d 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -2074,7 +2074,7 @@ li.token-input-token { padding: 0 6px; height: 24px; line-height: 24px; - background-color: #E9E9E6; + background-color: #F3F3F0; cursor: default; font-size: .92857em; white-space: nowrap; @@ -2093,8 +2093,7 @@ li.token-input-token span { } li.token-input-selected-token { - background-color: #467B96; - color: #FFF; + background-color: #E9E9E6; } li.token-input-input-token { diff --git a/admin/write-js.php b/admin/write-js.php index c465a495..28e3a8ee 100644 --- a/admin/write-js.php +++ b/admin/write-js.php @@ -27,7 +27,10 @@ $(document).ready(function() { // tag autocomplete 提示 $("#tags").tokenInput("http://shell.loopj.com/tokeninput/tvshows.php"); // tag autocomplete 提示宽度设置 - $(".token-input-dropdown").width($(".token-input-list").css('width')); + $("#token-input-tags").focus(function() { + $(".token-input-dropdown").width($(".token-input-list").css('width')); + }); + });