Bugzilla – Attachment 60336 Details for
Bug 14854
Add DataTables on upload results table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14854: Add DataTables on upload results table
Bug-14854-Add-DataTables-on-upload-results-table.patch (text/plain), 2.27 KB, created by
Jonathan Druart
on 2017-02-16 13:10:17 UTC
(
hide
)
Description:
Bug 14854: Add DataTables on upload results table
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-02-16 13:10:17 UTC
Size:
2.27 KB
patch
obsolete
>From 734d75b0ba05c19aa0345f364f697c225f49f20b Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 14 Feb 2017 01:12:43 +0000 >Subject: [PATCH] Bug 14854: Add DataTables on upload results table > >This patch adds datatables to the upload results table. >Tools -> Upload > >To test: >1) Go to Tools -> Upload >2) Put any search term in search box, click Search >3) Confirm table shows as datatable and sorting works on all columns >EXCEPT Actions > >Sponsored-by: Catalyst IT > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >index 45c6b79..5b61b6b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >@@ -6,6 +6,7 @@ > <title>Koha › Tools › Upload</title> > [% END %] > [% INCLUDE 'doc-head-close.inc' %] >+<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> > > [% BLOCK plugin_pars %] > [% IF plugin %] >@@ -147,7 +148,7 @@ > [% END %] > > [% BLOCK table_results %] >- <table> >+ <table id="uploadresults"> > <thead> > <tr> > <th>Filename</th> >@@ -156,7 +157,7 @@ > <th>Category</th> > [% IF !plugin %]<th>Public</th>[% END %] > [% IF !plugin %]<th>Temporary</th>[% END %] >- <th>Actions</th> >+ <th class="nosort">Actions</th> > </tr> > </thead> > <tbody> >@@ -185,6 +186,7 @@ > </table> > [% END %] > >+[% INCLUDE 'datatables.inc' %] > <style type="text/css"> > #fileuploadstatus,#fileuploadfailed { display : none; } > #fileuploadstatus { margin:.4em; } >@@ -304,6 +306,12 @@ function Choose(hashval) { > window.close(); > } > $(document).ready(function() { >+ $("#uploadresults").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { 'bSortable': false, 'aTargets': [ 'nosort' ] } >+ ], >+ "sPaginationType": "four_button" >+ })); > [% IF msg %] > ShowAlerts( [% msg %] ); > [% END %] >-- >2.1.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 14854
:
42738
|
60168
|
60302
| 60336