Bug 35249 - Use DataTables RowReorder extension instead of tableDND jQuery plugin
Summary: Use DataTables RowReorder extension instead of tableDND jQuery plugin
Status: Needs documenting
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on: 34913
Blocks: 35138
  Show dependency treegraph
 
Reported: 2023-11-03 14:32 UTC by Owen Leonard
Modified: 2024-05-24 08:57 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.05.00
Circulation function:


Attachments
Bug 35249: Use DataTables RowReorder extension instead of tableDND jQuery plugin (44.87 KB, patch)
2024-03-21 11:27 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 35249: Adjust table id and style (2.22 KB, patch)
2024-03-21 11:27 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 35249: Remove tableDnD from the about page (1.64 KB, patch)
2024-03-21 11:27 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 35249: Remove sort indicator on th (2.27 KB, patch)
2024-03-21 11:39 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 35249: Use DataTables RowReorder extension instead of tableDND jQuery plugin (44.93 KB, patch)
2024-04-12 07:48 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 35249: Adjust table id and style (2.28 KB, patch)
2024-04-12 07:48 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 35249: Remove tableDnD from the about page (1.69 KB, patch)
2024-04-12 07:48 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 35249: Remove sort indicator on th (2.33 KB, patch)
2024-04-12 07:48 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2023-11-03 14:32:31 UTC
I think it makes sense to replace jquery.tablednd.js with DataTables "official" extension RowReorder:

https://datatables.net/extensions/rowreorder/
Comment 1 Jonathan Druart 2024-03-21 11:27:32 UTC
Created attachment 163598 [details] [review]
Bug 35249: Use DataTables RowReorder extension instead of tableDND jQuery plugin

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 2 Jonathan Druart 2024-03-21 11:27:34 UTC
Created attachment 163599 [details] [review]
Bug 35249: Adjust table id and style

We could eventually have a table for authorities, so better to have a
specific table id.

Also I think it's better to have the table smaller than taking the whole
width

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 3 Jonathan Druart 2024-03-21 11:27:37 UTC
Created attachment 163600 [details] [review]
Bug 35249: Remove tableDnD from the about page

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 4 Jonathan Druart 2024-03-21 11:28:31 UTC
Talked with Owen and we wrote more or less the same patch (his was working however! Mine was missing the hidden column which didn't make the reorder works correctly).
Comment 5 Jonathan Druart 2024-03-21 11:39:31 UTC
Created attachment 163601 [details] [review]
Bug 35249: Remove sort indicator on th
Comment 6 Nick Clemens (kidclamp) 2024-04-12 07:48:02 UTC
Created attachment 164795 [details] [review]
Bug 35249: Use DataTables RowReorder extension instead of tableDND jQuery plugin

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 7 Nick Clemens (kidclamp) 2024-04-12 07:48:05 UTC
Created attachment 164796 [details] [review]
Bug 35249: Adjust table id and style

We could eventually have a table for authorities, so better to have a
specific table id.

Also I think it's better to have the table smaller than taking the whole
width

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 8 Nick Clemens (kidclamp) 2024-04-12 07:48:07 UTC
Created attachment 164797 [details] [review]
Bug 35249: Remove tableDnD from the about page

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 9 Nick Clemens (kidclamp) 2024-04-12 07:48:09 UTC
Created attachment 164798 [details] [review]
Bug 35249: Remove sort indicator on th

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 10 Katrin Fischer 2024-04-26 17:33:17 UTC
Fixed a conflict in the about page and followed-up on a QA script failure:

 FAIL	koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt
   FAIL	  forbidden patterns
		forbidden pattern: intranet-tmpl should certainly replaced with [% interface %] (line 12)
		forbidden pattern: Do *not* include full path to css files, use the Asset TT plugin (bug 20538) (line 12)
Comment 11 Katrin Fischer 2024-04-26 18:19:34 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 12 Fridolin Somers 2024-05-24 08:57:05 UTC
Not backported to 23.11.x