mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #360 from Shisu/master
Fixed "tablike"-behavior to include button- and a-Tags
This commit is contained in:
commit
c05c507177
@ -2050,7 +2050,7 @@
|
|||||||
var val = this.value, elementSelector,
|
var val = this.value, elementSelector,
|
||||||
key = event.which;
|
key = event.which;
|
||||||
if ([ENTER].indexOf(key) !== -1 && options.enterLikeTab) {
|
if ([ENTER].indexOf(key) !== -1 && options.enterLikeTab) {
|
||||||
elementSelector = $("input:visible,textarea:visible");
|
elementSelector = $("input:visible,textarea:visible,button:visible,a:visible");
|
||||||
datetimepicker.trigger('close.xdsoft');
|
datetimepicker.trigger('close.xdsoft');
|
||||||
elementSelector.eq(elementSelector.index(this) + 1).focus();
|
elementSelector.eq(elementSelector.index(this) + 1).focus();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user