Author: liem_nguyen
Date: 2009-12-07 23:37:18 -0500 (Mon, 07 Dec 2009)
New Revision: 969
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortal.js
Log:
GTNPORTAL-334 Can drag & drop gadget in Dashboard workspace when click switch view
mode
Don't show portlet controls in container view mode
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 2009-12-08
03:33:42 UTC (rev 968)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortal.js 2009-12-08
04:37:18 UTC (rev 969)
@@ -101,7 +101,7 @@
DOMUtil.replaceClass(normalBlock, "NormalContainerBlock",
"OverContainerBlock");
}
newLayer.parentNode.style.top = -height + "px";
- editBlock.style.display = "block";
+ editBlock.style.display = "block";
} else {
editBlock.style.display = "none";
if(!DOMUtil.hasClass(portlet, "UIPortlet")) {
@@ -109,6 +109,13 @@
DOMUtil.replaceClass(normalBlock, "OverContainerBlock",
"NormalContainerBlock");
}
}
+
+ // Don't displat portlet control when View Container
+ var controlPortlet = DOMUtil.findFirstDescendantByClass(editBlock, "div",
"CONTROL-PORTLET");
+ controlPortlet.style.display = "block";
+ if (controlPortlet != null && eXo.portal.portalMode == 4) {
+ controlPortlet.style.display = "none";
+ }
};
UIPortal.prototype.getUIPortlets = function() {