[Koha-bugs] [Bug 11211] Move calculation code out of C4::Calendar
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 26 14:53:42 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11211
--- Comment #41 from Magnus Enger <magnus at enger.priv.no> ---
Comment on attachment 33898
--> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=33898
Bug 11211 - Move calculation code out of C4::Calendar
Review of attachment 33898:
--> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=11211&attachment=33898)
-----------------------------------------------------------------
::: koha-tmpl/intranet-tmpl/prog/en/modules/tools/calendar.tt
@@ +490,5 @@
> + [% FOREACH event IN weekly_events %]
> + <tr>
> + <td>
> +<script type="text/javascript">
> + document.write(weekdays[ [% event.weekday %]]);
I think this line is causing the problem I was seeing with the page just
showing the name of a weekday. I think document.write does not just inject some
text where it is executed, but writes to the top level window (or something
like that), thus replacing the whole HTML page with a single word in this
instance. Commenting out this line makes the page render OK.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list