File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,9 @@ THE SOFTWARE.
181
181
fillSeconds ( ) ;
182
182
update ( ) ;
183
183
showMode ( ) ;
184
- attachDatePickerEvents ( ) ;
184
+ if ( ! getPickerInput ( ) . prop ( 'disabled' ) ) {
185
+ attachDatePickerEvents ( ) ;
186
+ }
185
187
if ( picker . options . defaultDate !== '' && getPickerInput ( ) . val ( ) === '' ) {
186
188
picker . setValue ( picker . options . defaultDate ) ;
187
189
}
@@ -1182,6 +1184,9 @@ THE SOFTWARE.
1182
1184
} ;
1183
1185
1184
1186
picker . show = function ( e ) {
1187
+ if ( getPickerInput ( ) . prop ( 'disabled' ) ) {
1188
+ return ;
1189
+ }
1185
1190
if ( picker . options . useCurrent ) {
1186
1191
if ( getPickerInput ( ) . val ( ) === '' ) {
1187
1192
if ( picker . options . minuteStepping !== 1 ) {
@@ -1220,7 +1225,7 @@ THE SOFTWARE.
1220
1225
} ;
1221
1226
1222
1227
picker . disable = function ( ) {
1223
- var input = picker . element . find ( 'input' ) ;
1228
+ var input = getPickerInput ( ) ;
1224
1229
if ( input . prop ( 'disabled' ) ) {
1225
1230
return ;
1226
1231
}
@@ -1229,7 +1234,7 @@ THE SOFTWARE.
1229
1234
} ;
1230
1235
1231
1236
picker . enable = function ( ) {
1232
- var input = picker . element . find ( 'input' ) ;
1237
+ var input = getPickerInput ( ) ;
1233
1238
if ( ! input . prop ( 'disabled' ) ) {
1234
1239
return ;
1235
1240
}
You can’t perform that action at this time.
0 commit comments