Skip to content

Commit ed7cfae

Browse files
committed
results can drag to sortable
1 parent d8401f8 commit ed7cfae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Desktop/html/js/analysis.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,16 @@ JASPWidgets.AnalysisView = JASPWidgets.View.extend({
663663
if (results.error)
664664
this.setHeightErroredAnalysis($innerElement);
665665

666+
this.$el.sortable({
667+
items: "> .jasp-display-item",
668+
handle: ".jasp-display-item",
669+
revert: true,
670+
tolerance: "pointer",
671+
cursor: "move",
672+
placeholder: "ui-state-highlight"
673+
})
674+
.disableSelection();
675+
666676
return this;
667677
},
668678

0 commit comments

Comments
 (0)