Skip to content

Commit

Permalink
fix drag n drop of widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
nykopol committed Oct 12, 2018
1 parent a1b4809 commit 0303aaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Resources/public/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ $.widget( "kalamu.kalamuDashboard", {
});

// sortable pour les Widgets
this.element.find('.kalamu-dashboard-col').sortable({
connectWith: ".kalamu-dashboard-col",
this.element.find('.col-widgets').sortable({
connectWith: ".col-widgets",
tolerance: 'pointer',
items: '.kalamu-dashboard-widget',
placeholder: "ui-state-highlight col-md-12",
Expand Down Expand Up @@ -285,9 +285,9 @@ $.widget( "kalamu.kalamuDashboard", {
if(this.element.hasClass('ui-sortable')){
this.element.sortable('destroy');
}
this.element.find('.kalamu-dashboard-col.ui-sortable').sortable('destroy');
this.element.find('.col-widgets.ui-sortable').sortable('destroy');

$(".kalamu-dashboard-col").enableSelection();
$(".col-widgets").enableSelection();
$(".kalamu-dashboard-row").enableSelection();
},

Expand Down

0 comments on commit 0303aaf

Please sign in to comment.