mediawiki.searchSuggest: Unbreak browser blacklist
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 17 Nov 2013 16:31:45 +0000 (17:31 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 17 Nov 2013 16:36:13 +0000 (17:36 +0100)
The 'browsers' key is not supported nor used. The 'blacklist' used
here resulted in every browser being passed through.

Also remove the distinction between LTR and RTL languages, as the
blacklist for both is the same.

Change-Id: Ia72b8f29be94523b989c8d932e4525d8aad34422

resources/mediawiki/mediawiki.searchSuggest.js

index 7f07862..8fd8496 100644 (file)
 
                // Compatibility map
                map = {
-                       browsers: {
-                               // Left-to-right languages
-                               ltr: {
-                                       // SimpleSearch is broken in Opera < 9.6
-                                       opera: [['>=', 9.6]],
-                                       docomo: false,
-                                       blackberry: false,
-                                       ipod: false,
-                                       iphone: false
-                               },
-                               // Right-to-left languages
-                               rtl: {
-                                       opera: [['>=', 9.6]],
-                                       docomo: false,
-                                       blackberry: false,
-                                       ipod: false,
-                                       iphone: false
-                               }
-                       }
+                       // SimpleSearch is broken in Opera < 9.6
+                       opera: [['>=', 9.6]],
+                       docomo: false,
+                       blackberry: false,
+                       ipod: false,
+                       iphone: false
                };
 
                if ( !$.client.test( map ) ) {