Skip to content

Commit

Permalink
Fixed bug where external events broke if were dropped outside the cal…
Browse files Browse the repository at this point in the history
…endar element
  • Loading branch information
Jarno Kurlin committed Oct 21, 2012
1 parent a39b272 commit 6b9b6b8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/resource/ResourceView.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,10 @@ function ResourceView(element, calendar, viewName) {


function dragStop(_dragElement, ev, ui) {
var cell = hoverListener.stop(),
resources = t.getResources,
newResource = resources[cell.row];

var cell = hoverListener.stop();
clearOverlays();
if (cell) {
var resources = t.getResources, newResource = resources[cell.row];
var d = cellDate(cell);
trigger('drop', _dragElement, d, true, ev, ui, newResource);
}
Expand Down

0 comments on commit 6b9b6b8

Please sign in to comment.