Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Время по умолчанию (от и до) дать возможность задать #88

Open
CB9TOIIIA opened this issue Oct 21, 2021 · 0 comments

Comments

@CB9TOIIIA
Copy link
Contributor

CB9TOIIIA commented Oct 21, 2021

image

image

image

$value = $this->get('fulldate', date('Y-m-d', time() + 186400));

  • Желательно также дать возможность сделать поле readonly
  • Ограничить промежуток выбора в календаре
  • Подумать над валидацией даты в RU формате (d.m.y)
jQuery(document).ready(function() {

jQuery.datepicker.setDefaults(jQuery.datepicker.regional['ru']);

  jQuery('.calendar-input').datepicker({
        dateFormat: 'yy-mm-dd',
        constrainInput: true,
        minDate: "+6",
        maxDate: "+15"
	});

  jQuery(".zoo-calendar").on("click", function(){
        jQuery(this).siblings("input").datepicker("show");    
  });

 jQuery(".jsJBCartShipping .calendar-input").prop('readonly', true);
          
}); 
 
 </script>```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant