Bugzilla – Attachment 92443 Details for
Bug 23493
jquery.dataTables.rowGrouping.js is no longer maintained, but there is an official DataTables version we could switch to
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23493: Replace rowGrouping with rowGroup
Bug-23493-Replace-rowGrouping-with-rowGroup.patch (text/plain), 1.67 KB, created by
Martin Renvoize (ashimema)
on 2019-08-23 10:21:48 UTC
(
hide
)
Description:
Bug 23493: Replace rowGrouping with rowGroup
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-08-23 10:21:48 UTC
Size:
1.67 KB
patch
obsolete
>From a2e68244266697b5dfc065028ac47667c30a3e00 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 23 Aug 2019 11:20:45 +0100 >Subject: [PATCH] Bug 23493: Replace rowGrouping with rowGroup > >This is an initial attempt to get some feedback. >--- > koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index 8e62247327..75eb34c91b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >@@ -574,7 +574,14 @@ $(document).ready(function() { > } ); > }, > "rowGroup":{ >- "dataSrc": "issuedate" >+ "dataSrc": "issued_today", >+ "startRender": function ( rows, group ) { >+ if ( group ) { >+ return $('<tr/>').append("<td colspan='100%'><strong>" + TODAYS_CHECKOUTS + "</strong></td>"); >+ } else { >+ return $('<tr/>').append("<td colspan='100%'><strong>" + PREVIOUS_CHECKOUTS + "</strong></td>"); >+ } >+ } > }, > "fnInitComplete": function(oSettings, json) { > // Disable rowGrouping plugin after first use >@@ -600,7 +607,6 @@ $(document).ready(function() { > .insertBefore(oSettings.nTableWrapper) > }, > }, columns_settings_issues_table); >- console.log("issuesTable loaded"); > > if ( $("#issues-table").length ) { > $("#issues-table_processing").position({ >-- >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 23493
:
92443
|
92444
|
97324
|
97344
|
97694
|
97704
|
98041
|
98042
|
98055
|
98056
|
98118
|
98132