Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 67464 invoked from network); 12 Oct 2007 00:50:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Oct 2007 00:50:21 -0000 Received: (qmail 77924 invoked by uid 500); 12 Oct 2007 00:50:08 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 77903 invoked by uid 500); 12 Oct 2007 00:50:08 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 77892 invoked by uid 99); 12 Oct 2007 00:50:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 17:50:08 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 00:50:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7F3781A9832; Thu, 11 Oct 2007 17:49:29 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r584012 - /portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-portlet-selector.vm Date: Fri, 12 Oct 2007 00:49:29 -0000 To: jetspeed-dev@portals.apache.org From: smilek@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071012004929.7F3781A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: smilek Date: Thu Oct 11 17:49:28 2007 New Revision: 584012 URL: http://svn.apache.org/viewvc?rev=584012&view=rev Log: fixed issues with ie6 (deletion of tbody elements in tables); fixed misuse of layoutid when adding portlets Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-portlet-selector.vm Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-portlet-selector.vm URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-portlet-selector.vm?rev=584012&r1=584011&r2=584012&view=diff ============================================================================== --- portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-portlet-selector.vm (original) +++ portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-portlet-selector.vm Thu Oct 11 17:49:28 2007 @@ -82,7 +82,7 @@ //dojo.widget.byId("AddPortletDialog").hide(); var portletDef = new jetspeed.selector.PortletDef( theNewPortlet ); var pagePath = jetspeed.url.removeAllQueryParameters( jetspeed.url.basePortalUrl() + jetspeed.url.path.AJAX_API + getReturnPagePath() ); - jetspeed.selector.addNewPortletDefinition( portletDef, null, pagePath, getAddToLayoutId() ); + jetspeed.selector.addNewPortletDefinition( portletDef, pagePath, getAddToLayoutId() ); selectorPortlets[pID].count = parseInt(selectorPortlets[pID].count) + 1; var cell = document.getElementById(theNewPortlet); if (cell != null) @@ -122,24 +122,28 @@ a.setAttribute("style", "font-weight:normal"); } } -function createPagination(Pagenumber,PageCount) +function clearTable( tableNode ) { - var pagtable1 = document.getElementById('pagtable1'); - while (pagtable1.hasChildNodes()) - { - pagtable1.removeChild(pagtable1.lastChild); - } - var pagtable3 = document.getElementById('pagtable3'); - while (pagtable3.hasChildNodes()) + if ( ! tableNode ) return; + while ( tableNode.hasChildNodes() ) { - pagtable3.removeChild(pagtable3.lastChild); + var lastChild = tableNode.lastChild; + var childNodeName = lastChild.nodeName; + if ( childNodeName && childNodeName.toLowerCase() == "tbody" ) + break; + tableNode.removeChild( lastChild ); } - +} + +function createPagination(Pagenumber,PageCount) +{ + var pagtable1 = document.getElementById('pagtable1'); + var pagtable3 = document.getElementById('pagtable3'); var pagtable = document.getElementById('pagtable2'); - while (pagtable.hasChildNodes()) - { - pagtable.removeChild(pagtable.lastChild); - } + clearTable( pagtable1 ); + clearTable( pagtable3 ); + clearTable( pagtable ); + var pgRoww = null; var pgCol=null; var a = null; @@ -236,10 +240,8 @@ //getting portlet table and deleting all items //befor adding the new var ptable = document.getElementById('ptable'); - while (ptable.hasChildNodes()) - { - ptable.removeChild(ptable.lastChild); - } + clearTable( ptable ); + var outerRow = null; var iz = 0; var ri = 0; @@ -352,7 +354,7 @@ { var jsLayoutId = jetspeed.url.getQueryParameter( document.location.href, "jslayoutid" ); if ( jsLayoutId == null ) - jsLayoutId = "$jslayoutid"; + jsLayoutId = "$!jslayoutid"; return jsLayoutId; } function getReturnURL() --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-dev-help@portals.apache.org