Update disable time when separated picker new or reset date
This commit is contained in:
1 parent
b49251afee
commit
48ce2278d0
2 files changed
+5
-5
No files matched your search
@@ -13,15 +13,14 @@ $(document).ready(function(){
|
||||
$('.separated_picker div').on("changeDate",function(){
|
||||
if ($(this).hasClass('date_picker'))
|
||||
{
|
||||
if ($(this).find('input').val())
|
||||
if ($(this).find('input').val() && $(this).siblings('div').css('pointer-events'))
|
||||
{
|
||||
|
||||
$(this).siblings('div').css('pointer-events', '');
|
||||
}
|
||||
else
|
||||
{
|
||||
$(this).siblings('div').find('input').val(null);
|
||||
$(this).siblings('div').disabled = true;
|
||||
$(this).siblings('div').unbind('click');
|
||||
$(this).siblings('div').css('pointer-events', 'none');
|
||||
}
|
||||
}
|
||||
$(this).siblings('input').val($(this).find('input').val() + ' ' + $(this).siblings('div').find('input').val());
|
||||
|
||||
Reference in new issue
Block a user