Index: trunk/extensions/Survey/specials/SpecialSurvey.php |
— | — | @@ -151,7 +151,7 @@ |
152 | 152 | 'removed' => 0, |
153 | 153 | 'text' => $wgRequest->getText( "survey-question-text-$questionId" ), |
154 | 154 | 'type' => $wgRequest->getInt( "survey-question-type-$questionId" ), |
155 | | - 'required' => $wgRequest->getCheck( "survey-question-required-$questionId" ), |
| 155 | + 'required' => 0, // $wgRequest->getCheck( "survey-question-required-$questionId" ), |
156 | 156 | 'answers' => $answers |
157 | 157 | ) ); |
158 | 158 | |
Index: trunk/extensions/Survey/resources/ext.survey.special.survey.js |
— | — | @@ -115,23 +115,24 @@ |
116 | 116 | answerSelector.setVisible( survey.question.typeHasAnswers( parseInt( newValue ) ) ); |
117 | 117 | } |
118 | 118 | ) ); |
| 119 | + |
| 120 | + // Not implemented in actual survey yet, so don't show for now. |
| 121 | +// $required = $( '<input />' ).attr( { |
| 122 | +// 'id': 'survey-question-required-' + question.id, |
| 123 | +// 'name': 'survey-question-required-' + question.id, |
| 124 | +// 'type': 'checkbox', |
| 125 | +// } ); |
| 126 | +// |
| 127 | +// if ( question.required ) { |
| 128 | +// $required.attr( 'checked', 'checked' ); |
| 129 | +// } |
| 130 | +// |
| 131 | +// $input.append( $required ); |
| 132 | +// |
| 133 | +// $input.append( $( '<label />' ).attr( { |
| 134 | +// 'for': 'survey-question-required-' + question.id |
| 135 | +// } ).text( mw.msg( 'survey-special-label-required' ) ) ); |
119 | 136 | |
120 | | - $required = $( '<input />' ).attr( { |
121 | | - 'id': 'survey-question-required-' + question.id, |
122 | | - 'name': 'survey-question-required-' + question.id, |
123 | | - 'type': 'checkbox', |
124 | | - } ); |
125 | | - |
126 | | - if ( question.required ) { |
127 | | - $required.attr( 'checked', 'checked' ); |
128 | | - } |
129 | | - |
130 | | - $input.append( $required ); |
131 | | - |
132 | | - $input.append( $( '<label />' ).attr( { |
133 | | - 'for': 'survey-question-required-' + question.id |
134 | | - } ).text( mw.msg( 'survey-special-label-required' ) ) ); |
135 | | - |
136 | 137 | $input.append( answerSelector.getHtml() ); |
137 | 138 | |
138 | 139 | return $input; |