Bugzilla – Attachment 60198 Details for
Bug 14405
Add datatable to fines table in OPAC patron account
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14405: Add datatables to fines table in OPAC
Bug-14405-Add-datatables-to-fines-table-in-OPAC.patch (text/plain), 2.53 KB, created by
Jonathan Druart
on 2017-02-14 12:43:53 UTC
(
hide
)
Description:
Bug 14405: Add datatables to fines table in OPAC
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-02-14 12:43:53 UTC
Size:
2.53 KB
patch
obsolete
>From 968eb1d7a6c7eb2dafcf84fec69efeebcdce6c30 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Thu, 2 Feb 2017 04:16:53 +0000 >Subject: [PATCH] Bug 14405: Add datatables to fines table in OPAC > >To test: >1) Apply patch >2) Go to OPAC -> Your account >3) Confirm you can now sort on all columns > >Sponsored-by: Catalyst IT > >NOTE: NICE! > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt >index b46cae0..319029a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt >@@ -3,11 +3,12 @@ > [% USE Price %] > [% SET ENABLE_OPAC_PAYMENTS = Koha.Preference('EnablePayPalOpacPayments') %] > [% SET DISPLAY_PAYMENT_BLOCK = 0 %] >- > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your fines and charges</title> > [% INCLUDE 'doc-head-close.inc' %] >-[% BLOCK cssinclude %][% END %] >+[% BLOCK cssinclude %] >+ <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> >+[% END %] > </head> > > [% INCLUDE 'bodytag.inc' bodyid='opac-account' bodyclass='scrollto' %] >@@ -66,7 +67,7 @@ > > [% IF ( ACCOUNT_LINES ) %] > <form method="post" action="opac-account-pay.pl" class="form-horizontal"> >- <table class="table table-bordered table-striped"> >+ <table class="table table-bordered table-striped" id="finestable"> > <thead> > <tr> > [% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %] >@@ -176,9 +177,14 @@ > > [% INCLUDE 'opac-bottom.inc' %] > [% BLOCK jsinclude %] >+[% INCLUDE 'datatables.inc' %] > <script type="text/javascript"> > $( document ).ready(function() { > >+ $("#finestable").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sPaginationType": "four_button" >+ })); >+ > $(".paypal").on("click", function() { > window.open('https://www.paypal.com/webapps/mpp/paypal-popup','WIPaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=1060, height=700'); > return false; >-- >2.9.3
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 14405
:
59764
|
59892
|
60198
|
60199
|
60322
|
60323