Bugzilla – Attachment 51633 Details for
Bug 16516
showListsUpdate JS function is not defined at the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16516: Define the showListsUpdate JS function at the OPAC
Bug-16516-Define-the-showListsUpdate-JS-function-a.patch (text/plain), 1.43 KB, created by
Marcel de Rooy
on 2016-05-20 06:10:55 UTC
(
hide
)
Description:
Bug 16516: Define the showListsUpdate JS function at the OPAC
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-05-20 06:10:55 UTC
Size:
1.43 KB
patch
obsolete
>From f1989cac9b41b38d84701e90a362a371af24634f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 13 May 2016 19:21:47 +0100 >Subject: [PATCH] Bug 16516: Define the showListsUpdate JS function at the > OPAC >Content-Type: text/plain; charset=utf-8 > >Bug 12233 removes the declaration of the showListsUpdate JS function for >the OPAC. >It results in a JS error (ReferenceError: showListsUpdate is not >defined) when a user tries to add selected titles to a list if no title >is selected. > >Test plan: >Launch a catalogue search >Select a list in the "Select titles to" dropdown list >=> Without this patch you will get the JS error >=> With this patch you will get a JS alert "No item was selected" > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/opac-tmpl/bootstrap/js/basket.js | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/basket.js b/koha-tmpl/opac-tmpl/bootstrap/js/basket.js >index 6db26d1..a422753 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/basket.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/basket.js >@@ -212,6 +212,11 @@ function showCartUpdate(msg){ > setTimeout("hideCart()",2000); > } > >+function showListsUpdate(msg){ >+ // set body of popup window >+ alert(msg); >+} >+ > function selRecord(num, status) { > var str = document.myform.records.value > if (status){ >-- >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 16516
:
51480
|
51492
| 51633