Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #10922: 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.
- Loading branch information
1 parent
10f17e4
commit 2a53ece
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters