Fix broken blacklisting code from r79363
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 2 Jan 2011 00:10:42 +0000 (00:10 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 2 Jan 2011 00:10:42 +0000 (00:10 +0000)
Problem reported by Krinkle -- the code I copy-pasted from the wiki page
was wrong, and apparently I didn't test properly in Opera.

skins/common/mwsuggest.js

index 9bc38c6..d9bc737 100644 (file)
@@ -52,7 +52,7 @@ window.os_animation_timer = null;
  * blacklist future versions too.
  */
 window.os_use_datalist = 'list' in document.createElement( 'input' )
-       && $.client.profile.name != 'opera';
+       && $.client.profile().name != 'opera';
 
 /** Timeout timer class that will fetch the results */
 window.os_Timer = function( id, r, query ) {