Author: tan_pham_dinh
Date: 2010-01-11 23:51:37 -0500 (Mon, 11 Jan 2010)
New Revision: 1227
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalDragDrop.js
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortal.js
Log:
GTNPORTAL-442: Error JS when dropping in edit layout
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalDragDrop.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalDragDrop.js 2010-01-12
01:24:48 UTC (rev 1226)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalDragDrop.js 2010-01-12
04:51:37 UTC (rev 1227)
@@ -261,6 +261,8 @@
newComponent = true;
}
+ if(!targetElement) return;
+
var params = [
{name: "srcID", value: (srcElement.id.replace(/^UIPortlet-/,
"")).replace(/^UIContainer-/,"")},
{name: "targetID", value: targetElement.id.replace(/^.*-/, "")},
Modified: portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortal.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortal.js 2010-01-12
01:24:48 UTC (rev 1226)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortal.js 2010-01-12
04:51:37 UTC (rev 1227)
@@ -545,6 +545,7 @@
var portalComposer = eXo.core.DOMUtil.findFirstDescendantByClass(uiWorkingWS,
"div", "UIPortalComposer");
var saveButton = eXo.core.DOMUtil.findFirstDescendantByClass(portalComposer,
"a", "SaveButton");
if(saveButton) eXo.core.DOMUtil.replaceClass(saveButton, "SaveButton",
"EdittedSaveButton");
+ ajaxAsyncGetRequest(eXo.env.server.createPortalURL(portalComposer.id,
"ChangeEdittedState", true));
}
};
Show replies by date