portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r891204 - /portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js
Date Wed, 16 Dec 2009 12:01:26 GMT
Author: woonsan
Date: Wed Dec 16 12:01:25 2009
New Revision: 891204

URL: http://svn.apache.org/viewvc?rev=891204&view=rev
Log:
JS2-1057: Fixing wrong column index problem when adding a portlet in /portal pipeline.

Modified:
    portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js

Modified: portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js?rev=891204&r1=891203&r2=891204&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js
(original)
+++ portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js
Wed Dec 16 12:01:25 2009
@@ -422,8 +422,14 @@
                     groups: dropGroups            
                 });
             }
-            var columns = Y.Node.all(JetuiConfiguration.layoutStyle); 
-            columns.item(parseInt(fragment.properties.column)).appendChild(v);
+            var columns = [];
+            Y.Node.all(JetuiConfiguration.layoutStyle).each(function(v, k) {
+                var locked = v.getAttribute("locked");
+                if (!locked || "false" == locked) {
+                    columns.push(v);
+                }
+            });
+            columns[parseInt(fragment.properties.column)].appendChild(v);
             
             var uri = portal.portalContextPath + "/portlet" + portal.portalPagePath + "?entity="
+ fragment.id;
             var request = Y.io(uri, { on: { complete: this.onPortletRenderComplete }, arguments:
{ complete: v } } );



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message