Bugzilla – Attachment 13866 Details for
Bug 9130
Remove old javascript from Parcel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9130 follow up: add statesave cookie and "all" option for parcel drop-down menu
0002-Bug-9130-follow-up-add-statesave-cookie-and-all-opti.patch (text/plain), 2.00 KB, created by
David Cook
on 2012-12-04 01:00:25 UTC
(
hide
)
Description:
Bug 9130 follow up: add statesave cookie and "all" option for parcel drop-down menu
Filename:
MIME Type:
Creator:
David Cook
Created:
2012-12-04 01:00:25 UTC
Size:
2.00 KB
patch
obsolete
>From 4c0ebc0ca3fd0fff3b267f79b562bed51fcfc7bb Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Tue, 4 Dec 2012 11:10:27 +1100 >Subject: [PATCH 2/2] Bug 9130 follow up: add statesave cookie and "all" > option for parcel drop-down menu >Content-Type: text/plain; charset="utf-8" > >This patch sets the bStateSave parameter for the "Pending orders" and "Already received" Datatables in Acquisitions, which uses a cookie to save the "pagination information, display length, filtering and sorting". > >It also sets the iCookieDuration parameter to 1000 days (the default value is 2 hours otherwise). > >It also adds an "all" option to the dro-down menu using the aLengthMenu parameter. >--- > .../intranet-tmpl/prog/en/modules/acqui/parcel.tt | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >index 2f3d0ed..877d263 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >@@ -15,6 +15,9 @@ > > $(document).ready(function(){ > var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "bStateSave": true, >+ "iCookieDuration": 60*60*24*1000, // 1000 days >+ "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], > "aoColumnDefs": [ > { "aTargets": [ 3, 8, 9 ], "bSortable": false, "bSearchable": false }, > ], >@@ -33,6 +36,9 @@ > "sPaginationType": "four_button" > } ) ); > var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "bStateSave": true, >+ "iCookieDuration": 60*60*24*1000, // 1000 days >+ "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], > "aoColumnDefs": [ > { "aTargets": [ 3, -1 ], "bSortable": false, "bSearchable": false }, > ], >-- >1.7.7.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 9130
:
13617
|
13640
|
13866
|
13870
|
13873
|
13874
|
13875
|
13876