mugifly / jquery-simple-datetimepicker

Date & time picker for jQuery, It's simple & clean.
http://mugifly.github.com/jquery-simple-datetimepicker
Other
260 stars 182 forks source link

min date not work in Firefox #94

Closed user20161119 closed 8 years ago

user20161119 commented 10 years ago
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <!--Load Script and Stylesheet -->
    <script type="text/javascript" src="jquery.simple-dtpicker.js"></script>
    <link type="text/css" href="jquery.simple-dtpicker.css" rel="stylesheet" />
</head>

<body>
<input id="start_time" type="text" value="" /><br />
<input id="end_time" type="text" value="" />
</body>
<script>
    function initTime(){
        var d = new Date();

        $('#start_time').val(d.getFullYear() + '-' + d.getMonth() + '-' + d.getDate() + " 16:30");
        // Example Only - Set the end date to 7 days in the future so we have an actual 

        $('#end_time').val(d.getFullYear() + '-' + d.getMonth() + '-' + d.getDate() + " 17:45 ");
        $('#start_time').appendDtpicker({
            minDate:$('#start_time').val()  
        });
        $('#end_time').appendDtpicker({
            minDate:$('#end_time').val()    
        });

    }
    window.onload = function(){
        initTime();
        };
</script>
</html>
royzrj commented 8 years ago

@mugifly I just tested the master branch using Firefox and the issue is not happening anymore

mugifly commented 8 years ago

Thanks!