Bugzilla – Attachment 133532 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), 5.00 KB, created by
Jonathan Druart
on 2022-04-21 09:45:56 UTC
(
hide
)
Description:
Bug 27750: Remove jquery.cookie.js plugin
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-04-21 09:45:56 UTC
Size:
5.00 KB
patch
obsolete
>From 86a61131f2bf8b5808c0bd414a2204547472c7ea 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. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../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 - > 4 files changed, 6 deletions(-) > delete mode 100644 koha-tmpl/intranet-tmpl/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 2ec98c020cc..00000000000 >--- 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 b419b9ab9fa..2679f70d671 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.13.1.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 1438476e299..30776fc5f9d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -804,9 +804,6 @@ > <h2>Verovio</h2> > <p><a href="https://www.verovio.org/index.xhtml">Verovio</a> 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 a7ec58df2ed..f2ae582d0e6 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 >@@ -11,7 +11,6 @@ CACHE: > [% interface | html %]/lib/jquery/jquery-ui-1.13.1.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 >-- >2.25.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