The first time you open the page in a window large than 1000px it sets the click event handler. When you resize it to a width smaller than 1000px, the click event is still set, so it will still react when you click.
You can do the following:
When the width is larger than 1000px
$('.schedule li').bind('click', function(){...
else (width is smaller than 1000px) unbind the click.
$('.schedule li').unbind('click');
I hope this is helpfull.