Skip to content

Commit a095f47

Browse files
author
dorgan@donaldorgan.com
committed
Quick tweak to stop datepicker from showing on disabled datepickers
1 parent acb32d7 commit a095f47

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/androLib.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15163,9 +15163,11 @@ function hDetailFromAHCols($ahcols,$name,$tabindex,$display='') {
1516315163
if ($ahcol['type_id'] == 'date') {
1516415164
jqDocReady( "$('.datepicker').each(
1516515165
function() {
15166-
$(this).datepicker().on('changeDate',function() {
15167-
$(this).datepicker('hide');
15168-
});
15166+
if ($(this).attr('readonly') == '') {
15167+
$(this).datepicker().on('changeDate',function() {
15168+
$(this).datepicker('hide');
15169+
});
15170+
}
1516915171
});
1517015172
" );
1517115173
}

0 commit comments

Comments
 (0)