diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-24 16:12:25 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-24 16:12:25 +0000 |
commit | 86e2b120396073ff81d74ff45e700ac24f4ea6da (patch) | |
tree | d10299551fc4060140f6fcbb986957ce9f8d9a78 /wp-inst/wp-admin/admin-header.php | |
parent | 6527622aa4b6bfe0217dd22d11587c34a5b65ea3 (diff) | |
download | wordpress-mu-86e2b120396073ff81d74ff45e700ac24f4ea6da.tar.gz wordpress-mu-86e2b120396073ff81d74ff45e700ac24f4ea6da.tar.xz wordpress-mu-86e2b120396073ff81d74ff45e700ac24f4ea6da.zip |
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
Diffstat (limited to 'wp-inst/wp-admin/admin-header.php')
-rw-r--r-- | wp-inst/wp-admin/admin-header.php | 13 |
1 files changed, 13 insertions, 0 deletions
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); } |