Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Only allow vertically sorting of exercises in workout page

Roland Geiderb20336772e4e
diff --git a/wger/core/static/js/workout-manager.js b/wger/core/static/js/workout-manager.js
index ea86a5fbc..3e6bb27e8 100644
--- a/wger/core/static/js/workout-manager.js
+++ b/wger/core/static/js/workout-manager.js
@@ -109,6 +109,7 @@ function setup_sortable() {
$(".workout-table tbody").sortable({
handle: '.dragndrop-handle',
revert: true,
+ axis: 'y',
update : function (event, ui) {
// Monkey around the HTML, till we find the IDs of the set and the day
var day_element = ui.item.parent().parent().find('tr').first().attr('id'); //day-xy