User "Johnduhart" posted a comment on MediaWiki.r103364.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/103364#c26173
Commit summary:

Option 1 button events:
        - Make the selected button blue and the unselected one gray
        - Check the associated hidden radio
        - Switch out the default text
        - Enable the form
Also updated the focus/blur event for textarea to take the two default messages
        into account

Comment:

<pre>+                                          var def_msg = '';
+                                               var val = 
$.articleFeedbackv5.$holder.find( '.articleFeedbackv5-bucket1-toggle 
input:checked' ).val();
+                                               if ( val == 'yes' ) {
+                                                       def_msg = mw.msg( 
'articlefeedbackv5-bucket1-question-comment-yes' );
+                                               } else if ( val == 'no' ) {
+                                                       def_msg = mw.msg( 
'articlefeedbackv5-bucket1-question-comment-no' );
+                                               }</pre>

Move this into a function so it's less repetitive.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to