More admin bar styling improvements. Includes RTL fixes. Don't show redundant 'search' value. props ocean90, see #15308.

git-svn-id: https://develop.svn.wordpress.org/trunk@16875 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-12-11 08:54:41 +00:00
parent bbbfee7e7f
commit 10b2d9bf40
7 changed files with 42 additions and 71 deletions
-13
View File
@@ -101,7 +101,6 @@
addEvent(w, 'load', function() {
var b = d.getElementsByTagName('body')[0],
s = d.getElementById('adminbar-search');
aB = d.getElementById('wpadminbar');
@@ -119,18 +118,6 @@
addEvent(aB, 'click', clickShortlink );
}
if ( s ) {
if ( '' == s.value )
s.value = s.getAttribute('title');
s.onblur = function() {
this.value = '' == this.value ? this.getAttribute('title') : this.value;
}
s.onfocus = function() {
this.value = this.getAttribute('title') == this.value ? '' : this.value;
}
}
if ( w.location.hash )
w.scrollBy(0,-32);
});