Bugzilla – Attachment 19494 Details for
Bug 8133
hourly loans doesn't know when library closed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Followup to bug 8133 - fix JS escaping in data literals
Followup-to-bug-8133---fix-JS-escaping-in-data-lit.patch (text/plain), 2.86 KB, created by
Jesse Weaver
on 2013-07-08 21:52:45 UTC
(
hide
)
Description:
Followup to bug 8133 - fix JS escaping in data literals
Filename:
MIME Type:
Creator:
Jesse Weaver
Created:
2013-07-08 21:52:45 UTC
Size:
2.86 KB
patch
obsolete
>From 8f7671625ea8cb0135d89daed9c6f23b24b377ff Mon Sep 17 00:00:00 2001 >From: Jesse Weaver <pianohacker@gmail.com> >Date: Mon, 8 Jul 2013 15:49:51 -0600 >Subject: [PATCH] Followup to bug 8133 - fix JS escaping in data literals > >There was some unescaped data being put into JS literals, which could >cause the calendar interface to fail to load. > >Note for testing: Template::Plugin::JavaScript must be installed, either >from CPAN or libtemplate-plugin-javascript-perl. >--- > C4/Installer/PerlDependencies.pm | 5 +++++ > koha-tmpl/intranet-tmpl/prog/en/modules/tools/calendar.tt | 13 +++++++------ > 2 files changed, 12 insertions(+), 6 deletions(-) > >diff --git a/C4/Installer/PerlDependencies.pm b/C4/Installer/PerlDependencies.pm >index ca220aa..aa28f37 100644 >--- a/C4/Installer/PerlDependencies.pm >+++ b/C4/Installer/PerlDependencies.pm >@@ -689,6 +689,11 @@ our $PERL_DEPS = { > 'required' => '1', > 'min_ver' => '0.22', > }, >+ 'Template::Plugin::JavaScript' => { >+ 'usage' => 'Core', >+ 'required' => '1', >+ 'min_ver' => '0.02', >+ }, > }; > > 1; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/calendar.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/calendar.tt >index 10212f1..4acb1cd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/calendar.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/calendar.tt >@@ -1,3 +1,4 @@ >+[% USE 'JavaScript' %] > [% USE 'KohaDates' %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Tools › [% branchname %] Calendar</title> >@@ -15,8 +16,8 @@ > var single_events = { > [% FOREACH event IN single_events %] > '[% event.event_date %]': { >- title: '[% event.title %]', >- description: '[% event.description %]', >+ title: '[% event.title | js %]', >+ description: '[% event.description | js %]', > closed: [% event.closed %], > eventType: 'single', > open_hour: '[% event.open_hour %]', >@@ -30,8 +31,8 @@ > var weekly_events = { > [% FOREACH event IN weekly_events %] > [% event.weekday %]: { >- title: '[% event.title %]', >- description: '[% event.description %]', >+ title: '[% event.title | js %]', >+ description: '[% event.description | js %]', > closed: [% event.closed %], > eventType: 'weekly', > weekday: [% event.weekday %], >@@ -46,8 +47,8 @@ > var yearly_events = { > [% FOREACH event IN yearly_events %] > '[% event.month %]-[% event.day %]': { >- title: '[% event.title %]', >- description: '[% event.description %]', >+ title: '[% event.title | js %]', >+ description: '[% event.description | js %]', > closed: [% event.closed %], > eventType: 'yearly', > month: [% event.month %], >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8133
:
19326
|
19494
|
19740
|
29336
|
31973
|
32176
|
32327
|
32985
|
32986
|
32990
|
32991