Fix collission with sortable.js script

TableSortable and Sortable javascripts were using the same CSS
class name to define completely different and separated
behaviours causing unexpected errors. Now `sortable.js` script
will use `.sortable` class and `table_sortable.js` will use
`.table-sortable` instead.
This commit is contained in:
Senén Rodero Rodríguez
2020-07-28 11:15:09 +02:00
parent cda545f2fc
commit 99f8bb4491
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
};
},
initialize: function() {
$("table.sortable th").on("click", function() {
$(".table-sortable th").on("click", function() {
var rows, table;
table = $(this).parents("table").eq(0);
rows = table.find("tbody tr").toArray().sort(App.TableSortable.comparer($(this).index()));