Author: phuong_vu
Date: 2010-10-26 03:13:45 -0400 (Tue, 26 Oct 2010)
New Revision: 4834
Modified:
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/core/DOMUtil.js
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIItemSelector.js
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIPopup.js
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIVerticalSlideTabs.js
Log:
GTNPORTAL-1549 A wrong JS code that may cause potential namespace conflict issues
Modified:
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/core/DOMUtil.js
===================================================================
---
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/core/DOMUtil.js 2010-10-26
07:13:32 UTC (rev 4833)
+++
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/core/DOMUtil.js 2010-10-26
07:13:45 UTC (rev 4834)
@@ -412,7 +412,7 @@
}
var nodes = [],
- elements = root.getElementsByTagName(tag);
+ var elements = root.getElementsByTagName(tag);
for (var i = 0, len = elements.length; i < len; ++i) {
if ( method(elements[i]) ) {
Modified:
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js
===================================================================
---
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js 2010-10-26
07:13:32 UTC (rev 4833)
+++
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js 2010-10-26
07:13:45 UTC (rev 4834)
@@ -548,7 +548,6 @@
* Modified by Truong LE to avoid double click problem
*/
- Browser = eXo.core.Browser;
if(eXo.portal.AjaxRequest.maskLayer == null ){
eXo.portal.AjaxRequest.maskLayer = eXo.core.UIMaskLayer.createTransparentMask();
}
Modified:
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIItemSelector.js
===================================================================
---
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIItemSelector.js 2010-10-26
07:13:32 UTC (rev 4833)
+++
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIItemSelector.js 2010-10-26
07:13:45 UTC (rev 4834)
@@ -114,7 +114,7 @@
/*TODO: Review This Function (Ha's comment)*/
UIItemSelector.prototype.beforeActionHappen = function(selectedItem) {
- DOMUtil = eXo.core.DOMUtil;
+ var DOMUtil = eXo.core.DOMUtil;
this.uiItemSelector = DOMUtil.findAncestorByClass(selectedItem,
"UIItemSelector");
this.itemList = DOMUtil.findAncestorByClass(selectedItem, "ItemList");
this.itemListContainer = DOMUtil.findAncestorByClass(selectedItem,
"ItemListContainer") ;
Modified:
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIPopup.js
===================================================================
---
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIPopup.js 2010-10-26
07:13:32 UTC (rev 4833)
+++
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIPopup.js 2010-10-26
07:13:45 UTC (rev 4834)
@@ -72,7 +72,7 @@
var uiMaskWS = document.getElementById("UIMaskWorkspace");
if(uiMaskWS) {
- uiMaskWSzIndex = eXo.core.DOMUtil.getStyle(uiMaskWS, "zIndex");
+ var uiMaskWSzIndex = eXo.core.DOMUtil.getStyle(uiMaskWS, "zIndex");
if(uiMaskWSzIndex && (uiMaskWSzIndex > eXo.webui.UIPopup.zIndex)) {
eXo.webui.UIPopup.zIndex = uiMaskWSzIndex;
}
Modified:
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIVerticalSlideTabs.js
===================================================================
---
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIVerticalSlideTabs.js 2010-10-26
07:13:32 UTC (rev 4833)
+++
portal/branches/branch-GTNPORTAL-1592/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIVerticalSlideTabs.js 2010-10-26
07:13:45 UTC (rev 4834)
@@ -102,7 +102,7 @@
var controlArea = eXo.core.DOMUtil.findFirstDescendantByClass(uiVTab,
"div", "ControlArea");
var controlAreaHeight = 0 ;
if(controlArea != null) controlAreaHeight = controlArea.offsetHeight ;
- scrollArea = eXo.core.DOMUtil.findFirstDescendantByClass(uiVTab, "div",
"ScrollArea");
+ var scrollArea = eXo.core.DOMUtil.findFirstDescendantByClass(uiVTab, "div",
"ScrollArea");
if(scrollArea != null) {
scrollArea.style.height = (height - controlAreaHeight - totalTabHeight - 35) +
"px" ;
}
Show replies by date