fixed issue 477
This commit is contained in:
parent
8e934154b0
commit
80d373cb2e
2 changed files with 51 additions and 1 deletions
|
@ -556,7 +556,7 @@ function exclEndDay(event) {
|
|||
|
||||
function _exclEndDay(end, allDay) {
|
||||
end = cloneDate(end);
|
||||
return allDay || end.getHours() || end.getMinutes() ? addDays(end, 1) : end;
|
||||
return allDay || end.getHours() || end.getMinutes() || end.getSeconds() ? addDays(end, 1) : end;
|
||||
}
|
||||
|
||||
|
||||
|
|
50
tests/issue_477_event_width.html
Normal file
50
tests/issue_477_event_width.html
Normal file
|
@ -0,0 +1,50 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<link rel='stylesheet' type='text/css' href='../examples/redmond/theme.css' />
|
||||
<script type='text/javascript' src='loader.js'></script>
|
||||
<script type='text/javascript'>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
// need to change to GMT+2 to recreate this bug!!!!
|
||||
|
||||
$('#calendar').fullCalendar({
|
||||
header: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
|
||||
},
|
||||
year: 2010,
|
||||
month: 4,
|
||||
firstDay: 1,
|
||||
events: [
|
||||
{"id":"1","title":"testcase 1 BAD","start":"1272822975","end":"1272837609","allDay":false}
|
||||
//{"id":"2","title":"testcase 2 GOOD","start":"1272822975","end":"1272837809","allDay":false},
|
||||
//{"id":"3","title":"testcase 3 GOOD too","start":"1272822975","end":"1272837609","allDay":true}
|
||||
]
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<style type='text/css'>
|
||||
|
||||
body {
|
||||
margin-top: 40px;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
|
||||
}
|
||||
|
||||
#calendar {
|
||||
width: 900px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id='calendar'></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue