Index: trunk/extensions/MoodBar/MoodBar.i18n.php |
— | — | @@ -44,6 +44,7 @@ |
45 | 45 | 'moodbar-what-link' => 'feature page', |
46 | 46 | 'moodbar-privacy' => 'By submitting, you agree to transparency under these $1.', |
47 | 47 | 'moodbar-privacy-link' => 'terms', |
| 48 | + 'moodbar-privacy-link-title' => 'Terms of Use', |
48 | 49 | 'moodbar-disable-link' => "I'm not interested. Please disable this feature.", |
49 | 50 | 'moodbar-form-title' => 'Because...', |
50 | 51 | 'moodbar-form-note' => '140 character maximum', |
— | — | @@ -222,6 +223,7 @@ |
223 | 224 | |
224 | 225 | See [[Thread:Support/About MediaWiki:Moodbar-privacy/en (2)/reply (4)|discussion]].', |
225 | 226 | 'moodbar-privacy-link' => 'This is the anchor text being used in the link replacing $1 in the message {{msg-mw|moodbar-privacy}}', |
| 227 | + 'moodbar-privacy-link-title' => 'This is the title of the anchor link being used for the privacy message', |
226 | 228 | 'moodbar-form-note-dynamic' => 'Should support plural.', |
227 | 229 | 'moodbar-form-policy-text' => 'Text displayed below the input area. |
228 | 230 | |
Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js |
— | — | @@ -258,7 +258,8 @@ |
259 | 259 | linkMessage = mw.msg( 'moodbar-what-link' ); |
260 | 260 | link = mw.html.element( 'a', { |
261 | 261 | 'href': mb.conf.infoUrl, |
262 | | - 'title': linkMessage |
| 262 | + 'title': linkMessage, |
| 263 | + 'target': '_blank' |
263 | 264 | }, linkMessage ); |
264 | 265 | |
265 | 266 | out = mw.html.escape( message ) |
— | — | @@ -287,13 +288,15 @@ |
288 | 289 | .find( '.mw-moodBar-privacy' ) |
289 | 290 | .html( |
290 | 291 | function() { |
291 | | - var message, linkMessage, link; |
| 292 | + var message, linkMessage, linkTitle, link; |
292 | 293 | |
293 | 294 | message = mw.msg( 'moodbar-privacy' ); |
294 | 295 | linkMessage = mw.msg( 'moodbar-privacy-link' ); |
| 296 | + linkTitle = mw.msg( 'moodbar-privacy-link-title' ); |
295 | 297 | link = mw.html.element( 'a', { |
296 | 298 | 'href': mb.conf.privacyUrl, |
297 | | - 'title': linkMessage |
| 299 | + 'title': linkTitle, |
| 300 | + 'target': '_blank' |
298 | 301 | }, linkMessage ); |
299 | 302 | |
300 | 303 | return mw.html.escape( message ) |
— | — | @@ -348,7 +351,6 @@ |
349 | 352 | */ |
350 | 353 | on_negative: function( t_obj ) { |
351 | 354 | $( t_obj ) |
352 | | - .addClass('mw-moodBar-feedback-invalid') |
353 | 355 | .parent().prev() |
354 | 356 | .find('.mw-moodBar-formNote') |
355 | 357 | .addClass('red-bold'); |
— | — | @@ -359,7 +361,6 @@ |
360 | 362 | */ |
361 | 363 | on_positive: function( t_obj ) { |
362 | 364 | $( t_obj ) |
363 | | - .removeClass( 'mw-moodBar-feedback-invalid') |
364 | 365 | .parent().prev() |
365 | 366 | .find('.mw-moodBar-formNote') |
366 | 367 | .removeClass('red-bold'); |
Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js |
— | — | @@ -470,7 +470,6 @@ |
471 | 471 | */ |
472 | 472 | on_negative: function( t_obj ) { |
473 | 473 | $( t_obj ) |
474 | | - .addClass('fbd-response-text-invalid') |
475 | 474 | .prev() |
476 | 475 | .find('span') |
477 | 476 | .addClass('red-bold'); |
— | — | @@ -481,7 +480,6 @@ |
482 | 481 | */ |
483 | 482 | on_positive: function( t_obj ) { |
484 | 483 | $( t_obj ) |
485 | | - .removeClass( 'fbd-response-text-invalid') |
486 | 484 | .prev() |
487 | 485 | .find('span') |
488 | 486 | .removeClass('red-bold'); |
Index: trunk/extensions/MoodBar/MoodBar.php |
— | — | @@ -148,6 +148,7 @@ |
149 | 149 | 'moodbar-form-submit', |
150 | 150 | 'moodbar-privacy', |
151 | 151 | 'moodbar-privacy-link', |
| 152 | + 'moodbar-privacy-link-title', |
152 | 153 | 'moodbar-disable-link', |
153 | 154 | 'moodbar-loading-title', |
154 | 155 | 'moodbar-error-title', |
— | — | @@ -250,6 +251,6 @@ |
251 | 252 | 'expires' => 30, |
252 | 253 | ), |
253 | 254 | 'infoUrl' => 'http://www.mediawiki.org/wiki/MoodBar', |
254 | | - 'privacyUrl' => 'about:blank', |
| 255 | + 'privacyUrl' => 'http://wikimediafoundation.org/wiki/Feedback_privacy_statement', |
255 | 256 | 'disableExpiration' => 365, |
256 | 257 | ); |
\ No newline at end of file |