Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js |
— | — | @@ -256,10 +256,10 @@ |
257 | 257 | function confirmAction(params, $item){ |
258 | 258 | |
259 | 259 | var inlineForm = $('<span>').attr('class', 'fbd-item-reason') |
260 | | - .append( $('<span>').html(mw.msg( 'moodbar-action-reason' )) ) |
| 260 | + .append( $('<span>').text(mw.msg( 'moodbar-action-reason' )) ) |
261 | 261 | .append( $('<input />').attr({'class':'fbd-action-reason', 'name':'fbd-action-reason'}) ) |
262 | | - .append( $('<button>').attr('class', 'fbd-action-confirm').html( mw.msg('moodbar-feedback-action-confirm')) ) |
263 | | - .append( $('<button>').attr('class', 'fbd-action-cancel').html( mw.msg('moodbar-feedback-action-cancel')) ) |
| 262 | + .append( $('<button>').attr('class', 'fbd-action-confirm').text( mw.msg('moodbar-feedback-action-confirm')) ) |
| 263 | + .append( $('<button>').attr('class', 'fbd-action-cancel').text( mw.msg('moodbar-feedback-action-cancel')) ) |
264 | 264 | .append( $('<span>').attr('class', 'fbd-item-reason-msg') ) |
265 | 265 | .append( $('<div>').attr('class', 'fbd-item-reason-msg') ); |
266 | 266 | |
— | — | @@ -412,16 +412,16 @@ |
413 | 413 | //build form |
414 | 414 | var inlineForm = $('<div>').attr( 'class', 'fbd-response-form' ) |
415 | 415 | .append( |
416 | | - $('<b>').html( mw.msg( 'moodbar-response-add' ) ) |
| 416 | + $('<b>').text( mw.msg( 'moodbar-response-add' ) ) |
417 | 417 | ).append( |
418 | | - $('<small>').attr( 'class', 'fbd-text-gray' ).html( ' (' + mw.msg( 'moodbar-response-nosig' ) + ') ' ) |
| 418 | + $('<small>').attr( 'class', 'fbd-text-gray' ).text( ' (' + mw.msg( 'moodbar-response-nosig' ) + ') ' ) |
419 | 419 | ).append( |
420 | 420 | $('<div>').attr( 'class', 'fbd-response-formNote' ) |
421 | 421 | .append($('<small>') |
422 | 422 | .append( |
423 | 423 | $('<span>').attr( 'class', 'fbd-response-charCount' ) |
424 | 424 | ).append( |
425 | | - $('<span>').html( mw.msg( 'moodbar-form-note-dynamic' ).replace( /\$1/g, "" ) ) |
| 425 | + $('<span>').text( mw.msg( 'moodbar-form-note-dynamic' ).replace( /\$1/g, "" ) ) |
426 | 426 | ) |
427 | 427 | ) |
428 | 428 | ).append( |
— | — | @@ -429,7 +429,7 @@ |
430 | 430 | ).append( |
431 | 431 | $('<div>').attr('class', 'ula').html( ula ) |
432 | 432 | ).append( |
433 | | - $('<button>').attr( 'class', 'fbd-response-submit' ).html( mw.msg( 'moodbar-response-btn' ) + ' ' + mw.msg( 'moodbar-respond-collapsed' ) ) |
| 433 | + $('<button>').attr( 'class', 'fbd-response-submit' ).text( mw.msg( 'moodbar-response-btn' ) + ' ' + mw.msg( 'moodbar-respond-collapsed' ) ) |
434 | 434 | .attr({'disabled':'true'}) |
435 | 435 | ).append( |
436 | 436 | $('<div>').attr( 'style', 'clear:both' ) |
— | — | @@ -524,7 +524,7 @@ |
525 | 525 | */ |
526 | 526 | function inlineMessage( $el, msg, callback) { |
527 | 527 | $el.empty() |
528 | | - .html( msg ) |
| 528 | + .text( msg ) |
529 | 529 | .delay(2000) |
530 | 530 | .fadeOut('slow', callback); |
531 | 531 | } |