]> source.dussan.org Git - redmine.git/commitdiff
Allow only vertical reorderingin sortable lists (#24062).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 Nov 2016 08:25:32 +0000 (08:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 Nov 2016 08:25:32 +0000 (08:25 +0000)
Patch by Vincent Robert.

git-svn-id: http://svn.redmine.org/redmine/trunk@15996 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

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