Bugzilla – Attachment 131118 Details for
Bug 27750
Remove jquery.cookie.js plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27750: Remove jquery.cookie.js plugin
Bug-27750-Remove-jquerycookiejs-plugin.patch (text/plain), 7.84 KB, created by
Owen Leonard
on 2022-02-25 12:15:24 UTC
(
hide
)
Description:
Bug 27750: Remove jquery.cookie.js plugin
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-02-25 12:15:24 UTC
Size:
7.84 KB
patch
obsolete
>From b05ccf815bb1525ffd7be08a6dac746a45bd6cb7 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 2 Feb 2022 15:15:58 +0000 >Subject: [PATCH] Bug 27750: Remove jquery.cookie.js plugin > >This patch removes references to the jquery.cookie.js plugin which is >now unused, replaced by js-cookie. >--- > .../intranet-tmpl/lib/jquery/plugins/jquery.cookie.min.js | 1 - > koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc | 1 - > koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 3 --- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline-mf.tt | 1 - > koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 1 - > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 1 - > .../bootstrap/lib/jquery/plugins/jquery.cookie.min.js | 2 -- > 7 files changed, 10 deletions(-) > delete mode 100644 koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.cookie.min.js > delete mode 100644 koha-tmpl/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.cookie.min.js > >diff --git a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.cookie.min.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.cookie.min.js >deleted file mode 100644 >index 2ec98c020c..0000000000 >--- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.cookie.min.js >+++ /dev/null >@@ -1 +0,0 @@ >-(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function r(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function s(e){if(e.indexOf('"')===0){e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{e=decodeURIComponent(e.replace(t," "))}catch(n){return}try{return u.json?JSON.parse(e):e}catch(n){}}function o(t,n){var r=u.raw?t:s(t);return e.isFunction(n)?n(r):r}var t=/\+/g;var u=e.cookie=function(t,s,a){if(s!==undefined&&!e.isFunction(s)){a=e.extend({},u.defaults,a);if(typeof a.expires==="number"){var f=a.expires,l=a.expires=new Date;l.setDate(l.getDate()+f)}return document.cookie=[n(t),"=",i(s),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}var c=t?undefined:{};var h=document.cookie?document.cookie.split("; "):[];for(var p=0,d=h.length;p<d;p++){var v=h[p].split("=");var m=r(v.shift());var g=v.join("=");if(t&&t===m){c=o(g,s);break}if(!t&&(g=o(g))!==undefined){c[m]=g}}return c};u.defaults={};e.removeCookie=function(t,n){if(e.cookie(t)!==undefined){e.cookie(t,"",e.extend({},n,{expires:-1}));return true}return false}}) >\ No newline at end of file >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 202781389e..54f1971496 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc >@@ -20,7 +20,6 @@ > [% Asset.js("lib/jquery/jquery-migrate-1.3.0.min.js") | $raw %] > [% Asset.js("lib/jquery/jquery-ui-1.11.4.min.js") | $raw %] > [% Asset.js("lib/shortcut/shortcut.js") | $raw %] >-[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") | $raw %] > [% Asset.js("lib/js-cookie/js.cookie-2.2.1.min.js") | $raw %] > [% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %] > [% Asset.js("lib/bootstrap/bootstrap.min.js") | $raw %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index 01b7d64efd..30cd22d114 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -803,9 +803,6 @@ > <h2>Verovio</h2> > <p><a href="https://www.verovio.org/index.xhtml">Verovio is developed by the Swiss RISM Office with the support of the Swiss National Science Foundation, licensed under the <a href="http://www.gnu.org/licenses/lgpl-3.0.html">LGPL v3.0</a>.</p> > >- <h2>jquery.cookie</h2> >- <p><a href="https://github.com/carhartl/jquery-cookie">jquery.cookie</a> by Klaus Hartl is a jQuery plugin for setting, reading, and deleting browser cookies, licensed under the <a href="https://github.com/carhartl/jquery-cookie/blob/master/MIT-LICENSE.txt">MIT license</a>.</p> >- > <h2>JavaScript Cookie</h2> > <p><a href="https://github.com/js-cookie/js-cookie">JavaScript Cookie</a> is a "simple, lightweight JavaScript API for handling cookies," licensed under the <a href="https://github.com/js-cookie/js-cookie/blob/master/LICENSE">MIT license</a>.</p> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline-mf.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline-mf.tt >index ebcdf117c3..be301eb21d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline-mf.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline-mf.tt >@@ -13,7 +13,6 @@ CACHE: > [% interface | html %]/lib/jquery/jquery-ui-1.11.4.min.js > [% interface | html %]/lib/jquery/jquery-2.2.3.min.js > [% interface | html %]/lib/jquery/jquery-migrate-1.3.0.min.js >-[% interface | html %]/lib/jquery/plugins/jquery.cookie.min.js > [% interface | html %]/lib/jquery/plugins/jquery.highlight-3.js > [% interface | html %]/lib/shortcut/shortcut.js > [% interface | html %]/lib/jquery/plugins/jquery.indexeddb.js >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >index fb57e6c18d..8cd82be615 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >@@ -280,7 +280,6 @@ $.widget.bridge('uitooltip', $.ui.tooltip); > </script> > [% END %] > >-[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") | $raw %] > <script> > $(document).ready(function() { > if($('#searchsubmit').length) { >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >index baf8aec28b..d298d27cac 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >@@ -449,7 +449,6 @@ > > [% BLOCK jsinclude %] > [% Asset.js("lib/jquery/plugins/jquery.deserialize.min.js") | $raw %] >-[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") | $raw %] > <script> > $(document).ready(function() { > [% IF search_groups %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.cookie.min.js b/koha-tmpl/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.cookie.min.js >deleted file mode 100644 >index 36d6b65eed..0000000000 >--- a/koha-tmpl/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.cookie.min.js >+++ /dev/null >@@ -1,2 +0,0 @@ >-/*! jquery.cookie v1.4.1 | MIT */ >-!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}}); >-- >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 27750
:
131118
|
133277
|
133532