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:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user