From 86e2b120396073ff81d74ff45e700ac24f4ea6da Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 24 Aug 2005 16:12:25 +0000 Subject: Category searching: 1. backspace and escape close search 2. losing focus closes search after 2 second delay 3. check for carriage return so empty search doesn't go through! git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@222 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-admin/admin-header.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'wp-inst/wp-admin/admin-header.php') diff --git a/wp-inst/wp-admin/admin-header.php b/wp-inst/wp-admin/admin-header.php index 6db9421..4dd69d8 100644 --- a/wp-inst/wp-admin/admin-header.php +++ b/wp-inst/wp-admin/admin-header.php @@ -127,8 +127,21 @@ function newCatAddIn() { newcatSub.value = '+'; newcatSub.setAttribute('onclick', 'ajaxNewCat();'); + var searchResult = document.createElement( 'div' ); + searchResult.type = 'div'; + searchResult.name = 'searchresults'; + searchResult.id = 'searchresults'; + searchResult.style.display = 'none'; + searchResult.style.overflow = 'auto'; + searchResult.style.border = '1px solid #ccc'; + searchResult.style.background = '#eee'; + searchResult.style.margin = '5px'; + searchResult.style.padding = '5px'; + + ajaxcat.appendChild(newcat); ajaxcat.appendChild(newcatSub); + ajaxcat.appendChild(searchResult); document.getElementById('categorychecklist').parentNode.appendChild(ajaxcat); } -- cgit