Bugzilla – Attachment 79997 Details for
Bug 15734
Audio Alerts broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15734: Fix filters on AUDIO_ALERTS
Bug-15734-Fix-filters-on-AUDIOALERTS.patch (text/plain), 1.38 KB, created by
Josef Moravec
on 2018-10-05 07:03:09 UTC
(
hide
)
Description:
Bug 15734: Fix filters on AUDIO_ALERTS
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-10-05 07:03:09 UTC
Size:
1.38 KB
patch
obsolete
>From 11dca593bd1737b2f56478767df84cea99cf8f04 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Fri, 5 Oct 2018 06:49:57 +0000 >Subject: [PATCH] Bug 15734: Fix filters on AUDIO_ALERTS > >Test Plan: >1) Enable audio alerts >2) Note audio alerts don't work >3) Apply this patch >4) Note audio alerts now work >--- > koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >index 046c7d5..af7c52c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >@@ -1,6 +1,7 @@ > [% USE raw %] > [% USE Asset %] > [% USE AudioAlerts %] >+[% USE JSON.Escape %] > [%# Prevent XFS attacks -%] > [% UNLESS popup %] > <script type="text/javascript"> >@@ -70,7 +71,7 @@ > <script type="text/javascript"> > //<![CDATA[ > var AUDIO_ALERT_PATH = '[% interface | html %]/[% theme | html %]/sound/'; >- var AUDIO_ALERTS = JSON.parse( '[% AudioAlerts.AudioAlerts | replace( "'", "\\'" ) | replace( '"', '\\"' ) | html %]' ); >+ var AUDIO_ALERTS = JSON.parse( '[% AudioAlerts.AudioAlerts | replace( "'", "\\'" ) | replace( '"', '\\"' ) | json %]' ); > //]]> > > $( document ).ready(function() { >-- >2.1.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 15734
:
47620
|
47621
|
47644
|
47735
|
79997
|
79998
|
80052
|
80053
|
80056
|
80057
|
80164
|
80165
|
80258
|
80259
|
80277