From 6623a2f7d7c709499d1570a941c0121e7d8e4e6a Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 8 Oct 2015 09:41:10 +0000 Subject: [PATCH] Fix calendar d-n-d not showing up helper while dragging, using Safari 9 --- calendar/js/app.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 009d6e8ac7..42e921555c 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -283,9 +283,12 @@ app.classes.calendar = AppJS.extend( */ start: function(event, ui) { - oldInnerHTML = ui.helper[0].innerHTML; - oldWidth = ui.helper.width(); - ui.helper.width(jQuery("#calColumn").width()); + //Safari 9 needs a delay to get the jquery helper width + setTimeout(function(){ + oldInnerHTML = ui.helper[0].innerHTML; + oldWidth = ui.helper.width(); + ui.helper.width(jQuery("#calColumn").width()); + },1); } })