Index: trunk/extensions/UsabilityInitiative/OptIn/OptIn.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | $wgOptInAlwaysShowPersonalLink = false; |
30 | 30 | $wgOptInNeverShowPersonalLink = false; |
31 | 31 | |
32 | | -$wgOptInStyleVersion = 9; |
| 32 | +$wgOptInStyleVersion = 10; |
33 | 33 | |
34 | 34 | // Preferences to set when users opt in |
35 | 35 | // array( prefname => value ) |
Index: trunk/extensions/UsabilityInitiative/OptIn/OptIn.js |
— | — | @@ -45,21 +45,23 @@ |
46 | 46 | case 'win': |
47 | 47 | osIndex = 'windows'; |
48 | 48 | break; |
| 49 | + case 'mac': |
| 50 | + osIndex = 'macos'; |
| 51 | + break; |
| 52 | + case 'linux': |
| 53 | + osIndex = 'linux'; |
| 54 | + break; |
| 55 | + } |
| 56 | + switch ( $j.browser.name ) { |
49 | 57 | case 'iemobile': |
50 | 58 | osIndex = 'windowsmobile'; |
51 | 59 | break; |
52 | | - case 'mac': |
53 | | - osIndex = 'macos'; |
54 | | - break; |
55 | 60 | case 'iphone': |
56 | 61 | osIndex = 'iphoneos'; |
57 | 62 | break; |
58 | 63 | case 'ipod': |
59 | 64 | osIndex = 'iphoneos'; |
60 | 65 | break; |
61 | | - case 'linux': |
62 | | - osIndex = 'linux'; |
63 | | - break; |
64 | 66 | } |
65 | 67 | return { 'survey-browser': browserIndex, 'survey-os': osIndex, |
66 | 68 | 'survey-res-x': screen.width, 'survey-res-y': screen.height, |