Bugzilla – Attachment 117561 Details for
Bug 27767
Number of elements in cart is not updated when records are deleted or merged
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27767: Remove readCookieValue
Bug-27767-Remove-readCookieValue.patch (text/plain), 1.52 KB, created by
Jonathan Druart
on 2021-03-03 10:39:35 UTC
(
hide
)
Description:
Bug 27767: Remove readCookieValue
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-03-03 10:39:35 UTC
Size:
1.52 KB
patch
obsolete
>From 171725657fc2357cfd5f777370216dfd3a48265b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 3 Mar 2021 09:29:57 +0100 >Subject: [PATCH] Bug 27767: Remove readCookieValue > >This JS function is not used. >It seems that "quit" is not used either >--- > koha-tmpl/intranet-tmpl/prog/js/basket.js | 9 +-------- > 1 file changed, 1 insertion(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/basket.js b/koha-tmpl/intranet-tmpl/prog/js/basket.js >index 38b06a8a96..fa0ffc7058 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/basket.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/basket.js >@@ -1,5 +1,5 @@ > /* global __ getContextBiblioNumbers */ >-/* exported readCookie readCookieValue SelectAll addMultiple selRecord delSingleRecord delBasket quit sendBasket downloadBasket printBasket showMore showLess openBiblio addSelToShelf vShelfAdd */ >+/* exported readCookie SelectAll addMultiple selRecord delSingleRecord delBasket quit sendBasket downloadBasket printBasket showMore showLess openBiblio addSelToShelf vShelfAdd */ > > ////////////////////////////////////////////////////////////////////////////// > // BASIC FUNCTIONS FOR COOKIE MANAGEMENT // >@@ -32,13 +32,6 @@ function writeCookie(name, val, wd) { > } > } > >-function readCookieValue (str, val_beg) { >- var val_end = str.indexOf(";", val_end); >- if (val_end == -1) >- val_end = str.length; >- return str.substring(val_beg, val_end); >-} >- > function readCookie(name, wd) { > var str_name = name + "="; > var str_cookie = ""; >-- >2.20.1
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 27767
: 117561 |
117562