<label for="pollEndTime">{lang}wcf.poll.endTime{/lang}</label>
</dt>
<dd>
- <input type="datetime" name="pollEndTime" id="pollEndTime" value="{if $pollEndTime}{@$pollEndTime|date:'c'}{/if}" class="medium">
+ <input type="datetime" tabindex="-1" name="pollEndTime" id="pollEndTime" value="{if $pollEndTime}{@$pollEndTime|date:'c'}{/if}" class="medium">
{if $errorField == 'pollEndTime'}
<small class="innerError">
{lang}wcf.poll.endTime.error.{@$errorType}{/lang}
<label for="pollEndTime_{$wysiwygSelector}">{lang}wcf.poll.endTime{/lang}</label>
</dt>
<dd>
- <input type="datetime" name="pollEndTime" id="pollEndTime_{$wysiwygSelector}" value="{if $pollEndTime}{@$pollEndTime|date:'c'}{/if}" class="medium">
+ <input type="datetime" tabindex="-1" name="pollEndTime" id="pollEndTime_{$wysiwygSelector}" value="{if $pollEndTime}{@$pollEndTime|date:'c'}{/if}" class="medium">
</dd>
</dl>
<dl>
// insert buttons
var $container = $('<div class="pollOptionInput" />').appendTo($listItem);
$('<span class="icon icon16 fa-arrows sortableNodeHandle" />').appendTo($container);
- $('<span class="icon icon16 fa-plus jsTooltip jsAddOption pointer" title="' + WCF.Language.get('wcf.poll.button.addOption') + '" />').click($.proxy(this._addOption, this)).appendTo($container);
- $('<span class="icon icon16 fa-times jsTooltip jsDeleteOption pointer" title="' + WCF.Language.get('wcf.poll.button.removeOption') + '" />').click($.proxy(this._removeOption, this)).appendTo($container);
+ $('<a role="button" href="#" class="icon icon16 fa-plus jsTooltip jsAddOption pointer" title="' + WCF.Language.get('wcf.poll.button.addOption') + '" />').click($.proxy(this._addOption, this)).appendTo($container);
+ $('<a role="button" href="#" class="icon icon16 fa-times jsTooltip jsDeleteOption pointer" title="' + WCF.Language.get('wcf.poll.button.removeOption') + '" />').click($.proxy(this._removeOption, this)).appendTo($container);
// insert input field
var $input = $('<input type="text" value="' + optionValue + '" maxlength="255" />').keydown($.proxy(this._keyDown, this)).appendTo($container);
* @param object event
*/
_addOption: function (event) {
+ event.preventDefault();
+
if (this._count === this._maxOptions) {
return false;
}
* @param object event
*/
_removeOption: function (event) {
+ event.preventDefault();
+
$(event.currentTarget).closest('li', this._container[0]).remove();
this._count--;
container.className = 'inputAddon';
var button = elCreate('a');
- button.className = 'inputSuffix button';
+ button.href = '#';
+ button.className = 'inputSuffix button jsTooltip';
button.addEventListener(WCF_CLICK_EVENT, _callbackOpen);
container.appendChild(button);