[portal-commits] JBoss Portal SVN: r5850 - trunk/core/src/resources/portal-core-war/WEB-INF/jsp/dashboard

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Wed Dec 13 13:38:07 EST 2006


Author: roy.russo at jboss.com
Date: 2006-12-13 13:38:05 -0500 (Wed, 13 Dec 2006)
New Revision: 5850

Modified:
   trunk/core/src/resources/portal-core-war/WEB-INF/jsp/dashboard/editpage.jsp
Log:
JBPORTAL-1160 - fixed, Javascript error in dashboard in FF

Modified: trunk/core/src/resources/portal-core-war/WEB-INF/jsp/dashboard/editpage.jsp
===================================================================
--- trunk/core/src/resources/portal-core-war/WEB-INF/jsp/dashboard/editpage.jsp	2006-12-13 16:18:16 UTC (rev 5849)
+++ trunk/core/src/resources/portal-core-war/WEB-INF/jsp/dashboard/editpage.jsp	2006-12-13 18:38:05 UTC (rev 5850)
@@ -27,25 +27,25 @@
 <script type="text/javascript" language="JavaScript">
    function assignPortlet(op, to)
    {
-      this.instancesForm.op.value = op;
-      this.instancesForm.toRegion.value = to;
+      this.document.instancesform.op.value = op;
+      this.document.instancesform.toRegion.value = to;
    }
 
    function unassignPortlet(op, from)
    {
-      this.instancesForm.op.value = op;
-      this.instancesForm.fromRegion.value = from;
+      this.document.instancesform.op.value = op;
+      this.document.instancesform.fromRegion.value = from;
    }
 
    function sortPortlet(op, region)
    {
-      this.instancesForm.op.value = op;
-      this.instancesForm.sortRegion.value = region;
+      this.document.instancesform.op.value = op;
+      this.document.instancesform.sortRegion.value = region;
    }
 
    function newPage(op)
    {
-      this.instancesForm.op.value = op;
+      this.document.instancesform.op.value = op;
    }
 
    function debug()
@@ -118,11 +118,11 @@
 <tr>
    <td>
       <form action="<portlet:actionURL>
-    </portlet:actionURL>" name="instancesForm" method="POST" onsubmit="debug();">
-         <input type="hidden" name="op"/>
-         <input type="hidden" name="toRegion"/>
-         <input type="hidden" name="fromRegion"/>
-         <input type="hidden" name="sortRegion"/>
+    </portlet:actionURL>" name="instancesform" method="POST" onsubmit="debug();">
+         <input type="hidden" name="op" value=""/>
+         <input type="hidden" name="toRegion" value=""/>
+         <input type="hidden" name="fromRegion" value=""/>
+         <input type="hidden" name="sortRegion" value=""/>
          <input type="hidden" name="editPageSelect" value="<%= currentPage %>"/>
          <table width="100%">
             <tr>




More information about the portal-commits mailing list