Mobile and Desktop drag handles part 1.

Thanks to xet7 !

Related #2081
This commit is contained in:
Lauri Ojansivu 2019-09-13 03:45:55 +03:00
parent 0fcfc3a340
commit ff550e9110
9 changed files with 39 additions and 16 deletions

View file

@ -31,11 +31,9 @@ BlazeComponent.extendComponent({
const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)';
const $cards = this.$('.js-minicards');
if (window.matchMedia('(max-width: 1199px)').matches) {
$('.js-minicards').sortable({
handle: '.handle',
});
}
$('.js-minicards').sortable({
handle: '.handle',
});
$cards.sortable({
connectWith: '.js-minicards:not(.js-list-full)',