You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by cg...@apache.org on 2014/01/24 06:26:39 UTC

svn commit: r1560900 - /rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js

Author: cgeer
Date: Fri Jan 24 05:26:38 2014
New Revision: 1560900

URL: http://svn.apache.org/r1560900
Log:
RAVE-1087
- Fixed issue where after dragging a gadget it would lose it's contents. Thanks Stanton for the patch!

Modified:
    rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js

Modified: rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js
URL: http://svn.apache.org/viewvc/rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js?rev=1560900&r1=1560899&r2=1560900&view=diff
==============================================================================
--- rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js (original)
+++ rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js Fri Jan 24 05:26:38 2014
@@ -231,6 +231,9 @@ define(["jquery", "underscore", "rave",
                 uiState.widget = rave.getWidget(ravePortal.getObjectIdFromDomId(widgetEl.id));
                 uiState.currentRegion = ravePortal.getObjectIdFromDomId(ui.item.parent().get(0).id);
 
+                // Workaround for SHINDIG-1965 to keep the iframe re-parenting from firing the load events again
+                $(widgetEl).find('iframe').removeAttr('onload');
+
                 //for every drag operation, create an overlay for each iframe
                 //to prevent the iframe from intercepting mouse events
                 //which kills drag performance