bring back tabindex to submit comments
This commit is contained in:
parent
04d66ba7f4
commit
11a7a08b9d
@ -32,7 +32,12 @@ function handle_comment_form(e) {
|
|||||||
var fields_empty = true;
|
var fields_empty = true;
|
||||||
|
|
||||||
if(form.find('.comment-edit-text').length) {
|
if(form.find('.comment-edit-text').length) {
|
||||||
form.find('.comment-edit-text').addClass('expanded').removeAttr('placeholder');
|
var commentElm = form.find('.comment-edit-text').attr('id');
|
||||||
|
var submitElm = commentElm.replace(/text/,'submit');
|
||||||
|
|
||||||
|
$('#' + commentElm).addClass('expanded').removeAttr('placeholder');
|
||||||
|
$('#' + commentElm).attr('tabindex','9');
|
||||||
|
$('#' + submitElm).attr('tabindex','10');
|
||||||
form.find(':not(:visible)').show();
|
form.find(':not(:visible)').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +48,12 @@ function handle_comment_form(e) {
|
|||||||
fields_empty = false;
|
fields_empty = false;
|
||||||
});
|
});
|
||||||
if(fields_empty) {
|
if(fields_empty) {
|
||||||
form.find('.comment-edit-text').removeClass('expanded').attr('placeholder', aStr.comment);
|
var emptyCommentElm = form.find('.comment-edit-text').attr('id');
|
||||||
|
var emptySubmitElm = commentElm.replace(/text/,'submit');
|
||||||
|
|
||||||
|
$('#' + emptyCommentElm).removeClass('expanded').attr('placeholder', aStr.comment);
|
||||||
|
$('#' + emptyCommentElm).removeAttr('tabindex');
|
||||||
|
$('#' + emptySubmitElm).removeAttr('tabindex');
|
||||||
form.find(':not(.comment-edit-text)').hide();
|
form.find(':not(.comment-edit-text)').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user