Index: trunk/extensions/SemanticFormsInputs/libs/datetimepicker.js |
— | — | @@ -10,6 +10,8 @@ |
11 | 11 | |
12 | 12 | var input = jQuery( '#' + inputId ); |
13 | 13 | |
| 14 | + var tabindex = input.attr('tabindex'); |
| 15 | + |
14 | 16 | var hiddenInput = jQuery( '<input type="hidden" >' ); |
15 | 17 | |
16 | 18 | hiddenInput.attr( { |
— | — | @@ -72,7 +74,7 @@ |
73 | 75 | |
74 | 76 | } else { |
75 | 77 | |
76 | | - var resetbutton = jQuery('<button type="button" class="ui-datetimepicker-trigger ' + params.userClasses + '" ><img src="' + params.resetButtonImage + '" alt="..." title="..."></button>'); |
| 78 | + var resetbutton = jQuery('<button type="button" class="ui-datetimepicker-trigger ' + params.userClasses + '" tabindex="' + tabindex + '" ><img src="' + params.resetButtonImage + '" alt="..." title="..."></button>'); |
77 | 79 | input.before( resetbutton ); |
78 | 80 | |
79 | 81 | resetbutton.click( function(){ |
Index: trunk/extensions/SemanticFormsInputs/libs/datepicker.js |
— | — | @@ -28,6 +28,8 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | |
| 32 | + var tabindex = inputShow.attr('tabindex'); |
| 33 | + |
32 | 34 | var re = /\d{4}\/\d{2}\/\d{2}/ |
33 | 35 | |
34 | 36 | if ( params.disabled ) { |
— | — | @@ -52,7 +54,7 @@ |
53 | 55 | // append reset button if image is set |
54 | 56 | if ( params.resetButtonImage && ! params.partOfDTP ) { |
55 | 57 | |
56 | | - var resetbutton = jQuery( '<button type="button" class="ui-datepicker-trigger ' + params.userClasses + '" ><img src="' + params.resetButtonImage + '" alt="..." title="..."></button>' ); |
| 58 | + var resetbutton = jQuery( '<button type="button" class="ui-datepicker-trigger ' + params.userClasses + '"><img src="' + params.resetButtonImage + '" alt="..." title="..."></button>' ); |
57 | 59 | inputShow.after( resetbutton ); |
58 | 60 | resetbutton.click( function(){ |
59 | 61 | inputShow.datepicker( 'setDate', null); |
— | — | @@ -75,6 +77,11 @@ |
76 | 78 | 'dateFormat': params.dateFormat, |
77 | 79 | 'beforeShowDay': function ( date ) {return SFI_DP_checkDate( '#' + input_id + '_show', date );} |
78 | 80 | } ); |
| 81 | + |
| 82 | + // at least in FF tabindex needs to be set delayed |
| 83 | + setTimeout(function(){ |
| 84 | + inputShow.siblings('button').attr('tabindex', tabindex); |
| 85 | + }, 0); |
79 | 86 | |
80 | 87 | if ( params.minDate ) { |
81 | 88 | inputShow.datepicker( 'option', 'minDate', |
Index: trunk/extensions/SemanticFormsInputs/libs/timepicker.js |
— | — | @@ -42,11 +42,14 @@ |
43 | 43 | input = inputShow; |
44 | 44 | } |
45 | 45 | |
| 46 | + var tabindex = inputShow.attr('tabindex'); |
| 47 | + |
46 | 48 | // append time picker button |
47 | 49 | var button = jQuery( '<button type="button" ></button>' ); |
48 | 50 | button.attr({ |
49 | 51 | 'class': params.userClasses, |
50 | | - 'id': inputID + '_button' |
| 52 | + 'id': inputID + '_button', |
| 53 | + 'tabindex': tabindex |
51 | 54 | }); |
52 | 55 | |
53 | 56 | |
— | — | @@ -80,7 +83,8 @@ |
81 | 84 | var resetbutton = jQuery('<button type="button" ></button>'); |
82 | 85 | resetbutton.attr({ |
83 | 86 | 'class': params.userClasses, |
84 | | - 'id': inputID + '_resetbutton' |
| 87 | + 'id': inputID + '_resetbutton', |
| 88 | + 'tabindex': tabindex |
85 | 89 | }); |
86 | 90 | |
87 | 91 | if ( params.disabled ) { |