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. Can this be fixed? I tried to look into the JS source but due to consequent non-use of spacing it's unreadable to me. Why btw is it that Usability Initiative JS and CSS uses no spaces? The non-Usability-Initiative files all use normal spacing conventions.
Marcus Buck User:Slomox
On Wed, Aug 4, 2010 at 2:21 PM, Marcus Buck wiki@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/UsabilityInitiati...
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.
On 8/5/10, Marcus Buck wiki@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. Can this be fixed?
Don't use Vector, this is prono skin.
2010/8/5 Liangent liangent@gmail.com:
On 8/5/10, Marcus Buck wiki@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. Can this be fixed?
https://bugzilla.wikimedia.org/show_bug.cgi?id=24498
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org