Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.init.js |
— | — | @@ -14,7 +14,15 @@ |
15 | 15 | }, |
16 | 16 | |
17 | 17 | isDisabled: function() { |
18 | | - return $.cookie( mb.cookiePrefix() + 'disabled' ) == '1'; |
| 18 | + var cookieDisabled = ($.cookie( mb.cookiePrefix() + 'disabled' ) == '1'); |
| 19 | + var browserDisabled = false; |
| 20 | + var clientInfo = $.client.profile(); |
| 21 | + |
| 22 | + if ( clientInfo.name == 'msie' && clientInfo.versionNumber < 8 ) { |
| 23 | + browserDisabled = true; |
| 24 | + } |
| 25 | + |
| 26 | + return cookieDisabled || browserDisabled; |
19 | 27 | }, |
20 | 28 | |
21 | 29 | ui: { |
Index: trunk/extensions/MoodBar/MoodBar.php |
— | — | @@ -61,6 +61,7 @@ |
62 | 62 | 'position' => 'top', |
63 | 63 | 'dependencies' => array( |
64 | 64 | 'jquery.cookie', |
| 65 | + 'jquery.client', |
65 | 66 | ), |
66 | 67 | ); |
67 | 68 | |
— | — | @@ -115,7 +116,6 @@ |
116 | 117 | 'scripts' => 'jquery.moodBar/jquery.moodBar.js', |
117 | 118 | 'dependencies' => array( |
118 | 119 | 'mediawiki.util', |
119 | | - 'jquery.client', |
120 | 120 | ), |
121 | 121 | ); |
122 | 122 | |