Skip to content

Commit

Permalink
talkback: Fix for IE9.
Browse files Browse the repository at this point in the history
Status.init() wipes the form clean, and it can't access the old controls anymore.
Didn't investigate why this only breaks in IE; We may have other modules that break there, too (I know I fixed one before).
  • Loading branch information
Amalthea committed Jun 17, 2011
1 parent 623c5e4 commit dd8d995
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/friendlytalkback.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ Twinkle.talkback.callback.evaluate = function friendlytalkbackCallbackEvaluate(e
page = e.target.noticeboard.value;
}

var message = e.target.message.value;

SimpleWindow.setButtonsEnabled( false );
Status.init( e.target );

Expand All @@ -225,8 +227,8 @@ Twinkle.talkback.callback.evaluate = function friendlytalkbackCallbackEvaluate(e

text += '|ts=~~~~~}}';

if( e.target.message.value ) {
text += '\n' + e.target.message.value + ' ~~~~';
if( message ) {
text += '\n' + message + ' ~~~~';
} else if( Twinkle.getFriendlyPref('insertTalkbackSignature') ) {
text += '\n~~~~';
}
Expand Down

0 comments on commit dd8d995

Please sign in to comment.