View Issue Details

IDProjectCategoryView StatusLast Update
0010922mantisbtbugtrackerpublic2009-10-07 14:19
Reporterdhx Assigned Todhx  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0rc2 
Target Version1.2.0rc2Fixed in Version1.2.0rc2 
Summary0010922: Prevent jscalendar from being imported more than once
Description

jscalendar doesn't work if it's included more than once (recursion error according to Firefox's Error Console). The date_print_calendar() function always used to include the javascript each time it was called. However this function can be called multiple times on a page load and it therefore shouldn't include the same javascript/css files each time. This function should be changed to import the javascript/css files only on the first instance.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 2a53ece7

2009-09-10 04:16

dhx


Details Diff
Fix 0010922: Prevent jscalendar from being imported more than once

jscalendar doesn't work if it's included more than once (recursion error
according to Firefox's Error Console). The date_print_calendar()
function always used to include the javascript each time it was called.
However this function can be called multiple times on a page load and it
therefore shouldn't include the same javascript/css files each time.
This function has been changed to import the javascript/css files only
on the first instance.
Affected Issues
0010922
mod - core/date_api.php Diff File

MantisBT: master-1.2.x 3773caf4

2009-09-10 04:16

dhx


Details Diff
Fix 0010922: Prevent jscalendar from being imported more than once

jscalendar doesn't work if it's included more than once (recursion error
according to Firefox's Error Console). The date_print_calendar()
function always used to include the javascript each time it was called.
However this function can be called multiple times on a page load and it
therefore shouldn't include the same javascript/css files each time.
This function has been changed to import the javascript/css files only
on the first instance.
Affected Issues
0010922
mod - core/date_api.php Diff File