|
@@ -21,7 +21,7 @@ function template_control_richedit($editor_id, $smileyContainer = null, $bbcCont
|
|
|
<div>
|
|
|
<div>
|
|
|
<div>
|
|
|
- <textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="" cols="600" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="width: ', $editor_context['width'], ';height: ', $editor_context['height'], '; ', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>
|
|
|
+ <textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="" cols="600" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="width: ', $editor_context['width'], ';height: ', $editor_context['height'], '; ', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', !empty($context['editor']['required']) ? 'required' : '', '">', $editor_context['value'], '</textarea>
|
|
|
</div>
|
|
|
<div id="', $editor_id, '_resizer" class="richedit_resize"></div>
|
|
|
</div>
|
|
@@ -247,7 +247,7 @@ function template_control_verification($verify_id, $display_type = 'all', $reset
|
|
|
echo '
|
|
|
<div class="smalltext vv_special">
|
|
|
', $txt['visual_verification_hidden'], ':
|
|
|
- <input type="text" name="', $_SESSION[$verify_id . '_vv']['empty_field'], '" autocomplete="off" size="30" value="">
|
|
|
+ <input type="text" name="', $_SESSION[$verify_id . '_vv']['empty_field'], '" autocomplete="off" size="30" value="" required>
|
|
|
</div>
|
|
|
<br>';
|
|
|
|
|
@@ -268,13 +268,13 @@ function template_control_verification($verify_id, $display_type = 'all', $reset
|
|
|
|
|
|
if (WIRELESS)
|
|
|
echo '<br>
|
|
|
- <input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" class="input_text">';
|
|
|
+ <input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" class="input_text" required>';
|
|
|
else
|
|
|
echo '
|
|
|
<div class="smalltext" style="margin: 4px 0 8px 0;">
|
|
|
<a href="', $verify_context['image_href'], ';sound" id="visual_verification_', $verify_id, '_sound" rel="nofollow">', $txt['visual_verification_sound'], '</a> / <a href="#visual_verification_', $verify_id, '_refresh" id="visual_verification_', $verify_id, '_refresh">', $txt['visual_verification_request_new'], '</a>', $display_type != 'quick_reply' ? '<br>' : '', '<br>
|
|
|
', $txt['visual_verification_description'], ':', $display_type != 'quick_reply' ? '<br>' : '', '
|
|
|
- <input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" class="input_text">
|
|
|
+ <input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" class="input_text" required>
|
|
|
</div>';
|
|
|
}
|
|
|
else
|
|
@@ -285,7 +285,7 @@ function template_control_verification($verify_id, $display_type = 'all', $reset
|
|
|
echo '
|
|
|
<div class="smalltext">
|
|
|
', $verify_context['questions'][$qIndex]['q'], ':<br>
|
|
|
- <input type="text" name="', $verify_id, '_vv[q][', $verify_context['questions'][$qIndex]['id'], ']" size="30" value="', $verify_context['questions'][$qIndex]['a'], '" ', $verify_context['questions'][$qIndex]['is_error'] ? 'style="border: 1px red solid;"' : '', ' tabindex="', $context['tabindex']++, '" class="input_text">
|
|
|
+ <input type="text" name="', $verify_id, '_vv[q][', $verify_context['questions'][$qIndex]['id'], ']" size="30" value="', $verify_context['questions'][$qIndex]['a'], '" ', $verify_context['questions'][$qIndex]['is_error'] ? 'style="border: 1px red solid;"' : '', ' tabindex="', $context['tabindex']++, '" class="input_text" required>
|
|
|
</div>';
|
|
|
}
|
|
|
|