Allow only vertical reorderingin sortable lists (#24062).

Patch by Vincent Robert.

git-svn-id: http://svn.redmine.org/redmine/trunk@15996 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-11-26 08:25:32 +00:00
parent 4f4c420f05
commit b0f89e68f4

View File

@@ -665,6 +665,7 @@ function beforeShowDatePicker(input, inst) {
}, options ); }, options );
return this.sortable($.extend({ return this.sortable($.extend({
axis: 'y',
handle: ".sort-handle", handle: ".sort-handle",
helper: function(event, ui){ helper: function(event, ui){
ui.children('td').each(function(){ ui.children('td').each(function(){