Bugzilla – Attachment 117962 Details for
Bug 27467
Provide a static URL for tables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27467: [SOLUTION 3] Restore atob/btoa calls
Bug-27467-SOLUTION-3-Restore-atobbtoa-calls.patch (text/plain), 1.21 KB, created by
Jonathan Druart
on 2021-03-09 10:48:11 UTC
(
hide
)
Description:
Bug 27467: [SOLUTION 3] Restore atob/btoa calls
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-03-09 10:48:11 UTC
Size:
1.21 KB
patch
obsolete
>From 7e1c0d10b43bee0c53a0b44a298544fb94981dc2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 9 Mar 2021 11:47:56 +0100 >Subject: [PATCH] Bug 27467: [SOLUTION 3] Restore atob/btoa calls > >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index 05abcf3191..8e4c24c54f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -76,7 +76,7 @@ var dataTablesDefaults = { > }, > stateSave: true, > stateSaveCallback: function (settings, data) { >- const state = JSON.stringify(data); >+ const state = btoa(JSON.stringify(data)); > //get query part of the url > let searchParams = new URLSearchParams(window.location.search); > //add encoded state into query part >@@ -96,7 +96,7 @@ var dataTablesDefaults = { > } > > //if we got the state, add current timestamp >- state = JSON.parse(state); >+ state = JSON.parse(atob(state)); > state['time'] = Date.now(); > > return state; >-- >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 27467
:
115325
|
115326
|
115327
|
115328
|
115329
|
115330
|
115331
|
117962