On Wed, Aug 4, 2010 at 2:21 PM, Marcus Buck <wiki(a)marcusbuck.org> wrote:
The search field for Vector is prefilled with the
word "search". This
word is automatically removed when the search field gets the focus. This
is problematic when you drag&drop words into the search field cause the
dropped word will be removed too.
Note that this only occurs on browsers that don't support the HTML5
placeholder attribute. It doesn't happen for me on Chrome.
Can this be fixed?
Shouldn't be hard.
Why btw is it that Usability Initiative JS and CSS
uses no spaces? The non-Usability-Initiative files all use normal
spacing conventions.
http://en.wikipedia.org/wiki/Minification_(programming)
You can view the original source code in SVN, like here:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/UsabilityInitiat…
The problem seems to be on line 62. Probably best to do something
like .replace( mw.usability.getMsg( 'vector-simplesearch-search' ), ''
) on the value instead of setting it to the empty string. I don't
know how to do that in jQuery, so I'll leave the actual fix to someone
else.