| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | if ($this->getParams() !== null) { |
| 55 | 55 | // some date-picker calendars may need to have their default value populated when the document is ready |
| 56 | 56 | ?> |
| 57 | 57 | <script type="text/javascript"> |
| 58 | - jQuery(document).ready(function() { | |
| 58 | + jQuery(function() { | |
| 59 | 59 | jQuery('#<?php echo $this->inputID('from_date'); ?>').val('<?php echo $this->getParam('from_date', ''); ?>').attr('data-alt-value', '<?php echo $this->getParam('from_date', ''); ?>'); |
| 60 | 60 | jQuery('#<?php echo $this->inputID('to_date'); ?>').val('<?php echo $this->getParam('to_date', ''); ?>').attr('data-alt-value', '<?php echo $this->getParam('to_date', ''); ?>'); |
| 61 | 61 | }); |
| 62 | 62 | </script> |