Author: julien(a)jboss.com
Date: 2007-03-30 12:46:59 -0400 (Fri, 30 Mar 2007)
New Revision: 6885
Modified:
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaPortletRenderer.java
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaRegionRenderer.java
Log:
changed name draggable-region to dyna-region as it is from dyna renderer
Modified:
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaPortletRenderer.java
===================================================================
---
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaPortletRenderer.java 2007-03-30
16:43:32 UTC (rev 6884)
+++
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaPortletRenderer.java 2007-03-30
16:46:59 UTC (rev 6885)
@@ -84,9 +84,9 @@
private void doCatchClicks(RenderContext renderContext, PortletRenderContext prc)
throws RenderException
{
-// StringBuffer out = renderContext.getMarkupFragment();
-// out.append("<div class=\"portlet-bilto\">");
+ StringBuffer out = renderContext.getMarkupFragment();
+ out.append("<div class=\"dyna-portlet\">");
delegate.render(renderContext, prc);
-// out.append("</div>");
+ out.append("</div>");
}
}
Modified:
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaRegionRenderer.java
===================================================================
---
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaRegionRenderer.java 2007-03-30
16:43:32 UTC (rev 6884)
+++
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaRegionRenderer.java 2007-03-30
16:46:59 UTC (rev 6885)
@@ -20,6 +20,28 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
* 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
******************************************************************************/
+/****dr**************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
package org.jboss.portal.theme.impl.render.dynamic;
@@ -119,7 +141,7 @@
"function snapshot() {\n" +
// Find draggable regions
- " var regions_on_page =
document.getElementsByClassName(\"draggable-region\");\n" +
+ " var regions_on_page =
document.getElementsByClassName(\"dyna-region\");\n" +
// Save current state in the DOM itself
" for(var i = 0;i < regions_on_page.length;i++) {\n" +
@@ -178,7 +200,7 @@
markup.append("<script>\n" +
// Find the draggable regions
- "var regions_on_page =
document.getElementsByClassName(\"draggable-region\");\n" +
+ "var regions_on_page =
document.getElementsByClassName(\"dyna-region\");\n" +
//
"for(var i = 0;i < regions_on_page.length;i++) {\n" +
@@ -213,7 +235,7 @@
delegate.preRender(renderContext, rrc);
// We need height and width otherwise the region will not be usable when empty
- markup.append("<div class=\"draggable-region\"
style=\"height:200px;width=200px\"
id=\"").append(rrc.getId()).append("\">");
+ markup.append("<div class=\"dyna-region\"
style=\"height:200px;width=200px\"
id=\"").append(rrc.getId()).append("\">");
}
else
{