RAVE-1087 - Fixed issue where after dragging a gadget it would lose it's contents. Thanks Stanton for the patch!
git-svn-id: https://svn.apache.org/repos/asf/rave/trunk@1560900 13f79535-47bb-0310-9956-ffa450edef68 Project: http://git-wip-us.apache.org/repos/asf/rave/repo Commit: http://git-wip-us.apache.org/repos/asf/rave/commit/14388640 Tree: http://git-wip-us.apache.org/repos/asf/rave/tree/14388640 Diff: http://git-wip-us.apache.org/repos/asf/rave/diff/14388640 Branch: refs/heads/angular Commit: 1438864021e1d35b3cd80d769b3e8b900a8020bc Parents: 9ee7acf Author: cgeer <cgeer@unknown> Authored: Fri Jan 24 05:26:38 2014 +0000 Committer: cgeer <cgeer@unknown> Committed: Fri Jan 24 05:26:38 2014 +0000 ---------------------------------------------------------------------- .../src/main/webapp/static/script/portal/rave_ui.js | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/rave/blob/14388640/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js ---------------------------------------------------------------------- diff --git a/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js b/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js index 40284ba..61bb950 100644 --- a/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js +++ b/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js @@ -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
