| Issue 697: | jQuery Sortable duplicates Calendar | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I've been implementing a sortable list of widgets one of which being this calendar control. All's fine except when I move the Calendar control the Calendar itself is duplicated. I've been unable to see why this is, but having a check for the table.fc-header class before the main js code works for me:
if ($('#calendar table.fc-header').length == 0) {
$('#calendar').fullCalendar({
theme: true,
header: {
left: 'title',
right: ' today,prev,next'
},
editable: false,
events: <%= Model.Events %>
});
};
I am using the following jQuery js files:
jquery-1.4.2.js
jquery-ui-1.8.2.custom.js
and the following ajax files
MicrosoftAjax.debug.js
MicrosoftMvcAjax.debug.js
The table (class = fc-header) and the div (class = fc-content ui-widget-content) become duplicated so the html goes
<div id="calendar" class="fc ui-widget">
<table class="fc-header">....</table>
<div class="fc-content ui-widget-content" style="...">...</div>
<table class="fc-header">....</table>
<div class="fc-content ui-widget-content" style="...">...</div>
</div>
Nov 21, 2010
Project Member
#1
adamrs...@gmail.com
Status:
Done
|
|
| ► Sign in to add a comment |