Merge pull request #360 from Shisu/master

Fixed "tablike"-behavior to include button- and a-Tags
This commit is contained in:
Valeriy 2015-12-01 18:19:48 +05:00
commit c05c507177

View File

@ -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;