From portal-commits at lists.jboss.org Tue Mar 18 00:01:13 2008 Content-Type: multipart/mixed; boundary="===============7251391784219563870==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r10299 - in modules/portlet/trunk/portal/src/main: resources/simple-portal-war/admin and 5 other directories. Date: Tue, 18 Mar 2008 00:01:12 -0400 Message-ID: --===============7251391784219563870== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: wesleyhales Date: 2008-03-18 00:01:11 -0400 (Tue, 18 Mar 2008) New Revision: 10299 Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/css/ad= min.css modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/ modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/container-bg.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/contract.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/expand.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/filter-bg.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/filter-icon.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/main-header-bg.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/par-header.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/portlet-icon.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/start-stop-bg.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/start-stop-edge.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/started-icon.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/stopped-icon.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/sub-header-bg.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/images= /admin/warning-icon.gif modules/portlet/trunk/portal/src/main/resources/simple-portal-war/js/adm= in.js Modified: modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/port= al/admin/ui/AdminPortlet.java modules/portlet/trunk/portal/src/main/resources/simple-portal-war/admin/= index.jsp modules/portlet/trunk/portal/src/main/resources/simple-portal-war/layout= s/header.jsp Log: admin portlet ui changes - still more to do Modified: modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portl= et/portal/admin/ui/AdminPortlet.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/por= tal/admin/ui/AdminPortlet.java 2008-03-17 22:53:22 UTC (rev 10298) +++ modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/por= tal/admin/ui/AdminPortlet.java 2008-03-18 04:01:11 UTC (rev 10299) @@ -119,6 +119,18 @@ PortletApplicationRegistry registry =3D (PortletApplicationRegistry)= getPortletContext().getAttribute("PortletApplicationDeployer"); = // + writer.print("" + + "" + + "" + + "
\n" + + "
\n" + + "
\n" + + " 3D\"\"/Expand A= ll\n" + + "
\n" + + "
\n" + + " 3D\"\"/Coll= apse All\n" + + "
\n" + + "
\n"); = = for (ManagedPortletApplication application : registry.getManagedPort= letApplications()) @@ -134,26 +146,48 @@ url.setParameter("lifecycle", "start"); String startURL =3D url.toString(); = + String htmlId =3D application.getId().substring(1,application.get= Id().length()); = = - writer.print(""); + + = writer.print("" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " " + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " "); = + "\n" + + "
\n" + + "
\n" + + " \n" + + "\n" + + "
\n"= + + " 3D\"\"/" + applica= tion.getStatus() + "\n" + + "\n" + + "
\n" + + " 3D\"\"/\n" + + " Stop= \n" + + "
\n" + + "
\n" + + " \n" + + "
" + + "" + + "
\n" + + "
Application
IDStatusDescription
" + application.getId() + "" + application.getStatus() + "Start | Stop
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "\n"); + // for (ManagedPortletFilter filter : application.getManagedPortletF= ilters()) { @@ -172,21 +206,16 @@ // startURL + "\">StartSt= op"); = writer.print("" + - " \n" + - " \n" + - " \n" + - //" \n" + - //" \n" + - //" \n" + - //" \n" + - //" " + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " "); + "" + + " \= n" + + " \n" + + " \n" + + " \n" + + " \n" + + " " + + ""); = + } = // @@ -216,34 +245,35 @@ } = writer.print("" + - " \n" + - " \n" + - " \n" + - //" \n" + - //" \n" + - //" \n" + - //" \n" + - //" " + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " "); + "" + + " \n" + + " \n" + + " \n" + + " \= n" + + " \n" + + " " + + + +// " \n" + + ""); } - writer.print("
IDStatusDescription

Filter

IDStatus
" + filter.getId() + "" + filter.getStatus() + "Start | Stop
3D\"\"/" + filter.getId() + "" + filter.getStatus() += "Start | Stop

Container

IDStatus
" + container.getId() + "" + container.getStatus() + "" + descString + "Start | Stop
3D\"\"/" + container.getId() + "" + container.getStatus(= ) + "" + descString + "Start | Stop
"); + writer.print("" + + "
\n" + + ""); } = + writer.print("" + + " \n" + + " \n" + + " \n" + + "\n" + + " \n" + + "
\n" + + ""); + // writer.close(); = } = -} - - /*protected void doView(RenderRequest request, RenderResponse response)= throws PortletException, IOException - { - PortletRequestDispatcher rd =3D getPortletContext().getRequestDispat= cher("admin/admin.jsp"); - rd.include(request, response); - }*/ -//} +} \ No newline at end of file Modified: modules/portlet/trunk/portal/src/main/resources/simple-portal-war= /admin/index.jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portal/src/main/resources/simple-portal-war/admin= /index.jsp 2008-03-17 22:53:22 UTC (rev 10298) +++ modules/portlet/trunk/portal/src/main/resources/simple-portal-war/admin= /index.jsp 2008-03-18 04:01:11 UTC (rev 10299) @@ -4,8 +4,12 @@ <%@ taglib uri=3D"/WEB-INF/portal.tld" prefix=3D"portal" %> <%@ page isELIgnored=3D"false" %> = + + + <%@ include file=3D"/layouts/admin-header.jsp" %> - = + + = Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/cs= s/admin.css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portal/src/main/resources/simple-portal-war/css/a= dmin.css (rev 0) +++ modules/portlet/trunk/portal/src/main/resources/simple-portal-war/css/a= dmin.css 2008-03-18 04:01:11 UTC (rev 10299) @@ -0,0 +1,159 @@ + +div.admin-container div.admin-header { + background-image: url( /simple-portal/images/admin/main-header-bg.gif ); + background-repeat: repeat-x; + background-position: top left; + height: 42px; + border-bottom: 1px solid #989898; + position: relative; +} + +div.admin-container div.admin-header div.expand { + position: absolute; + bottom: 5px; + left: 10px; +} + +div.admin-container div.admin-header div.collapse { + position: absolute; + bottom: 5px; + left: 100px; +} + +div.admin-container div.admin-header div.expand a, + div.admin-container div.admin-header div.collapse a { + text-decoration: none +} + +div.admin-container div.admin-header>div img { + margin: 0 5px 0 0; +} + +div.admin-container div.par-container { + +} + +div.admin-container div.par-container div.par-header { + background-image: url( /simple-portal/images/admin/par-header.gif); + background-repeat: no-repeat; + background-position: top left; + height: 48px; + border-bottom: 2px solid #989898; + position: relative; +} + +div.admin-container div.par-container div.par-header-left { + position: absolute; + bottom: 5px; + left: 10px; +} + +div.admin-container div.par-container div.par-header-left a { + text-decoration: none; +} + +div.admin-container div.par-container div.par-header-left h3.par { + display: inline; + color: #4c1010; + font-size: 1.2em; +} + +div.admin-container div.par-container div.par-header-right { + position: absolute; + top: 0; + right: 0; + width: 140px; + height: 19px; +} + +div.admin-container div.par-container div.par-header-right div.par-control= { + background-image: url( /simple-portal/images/admin/start-stop-bg.gif ); + background-repeat: repeat-x; + background-position: top left; + width: 65px; + height: 19px; + float: right; + position: relative; /*border-bottom: 1px solid #c3c3c3;*/ +} + +div.admin-container div.par-container div.par-header-right div.par-control= a { + top: 1px; + left: 18px; + position: absolute; + color: #7a0f0f; + font-weight: bold; +} + +div.admin-container div.par-container div.par-header-right>span.par-status= { + float: left; + padding: 2px 0 0 0; +} + +div.admin-container div.par-container div.par-header-right>span.par-status= img { + margin: 0 5px 0 0; +} + +table.par-table { + margin: 0; + padding: 0; + border-collapse: collapse; + border-spacing: 0; +} + +table.par-table td { + padding: 0 0 0 3px; +} + +table.par-table tr.par-subhead { + background-image: url( /simple-portal/images/admin/sub-header-bg.gif ); + background-repeat: repeat-x; + background-position: top left; +} + +table.par-table tr.par-subhead td { + height: 25px; + border-bottom: #d2d2d2; + color: #fff; + font-weight: bold; +} + +table.par-table td img.icon { + margin: 0 3px 0 0; +} + +table.par-table td.par-header-left { + padding: 0 0 0 15px; +} + +table.par-table td.par-row-left { + padding: 0 0 0 15px; +} + +table.par-table td.par-row-right { + text-align: right; + padding: 0 5px 0 0; +} + +table.par-table td a.start { + color: #17600e +} + +table.par-table td a.stop { + color: #9e0606; +} + +table.par-table tr.par-container-row { + background-image: url( /simple-portal/images/admin/container-bg.gif ); + background-repeat: repeat-x; + background-position: top left; + height: 38px; + border-bottom: 1px solid #fff; +} + +table.par-table tr.par-filter-row { + background-image: url( /simple-portal/images/admin/filter-bg.gif ); + background-repeat: repeat-x; + background-position: top left; + height: 38px; + border-bottom: 1px solid #fff; +} \ No newline at end of file Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/container-bg.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/container-bg.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/contract.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/contract.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/expand.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/expand.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/filter-bg.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/filter-bg.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/filter-icon.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/filter-icon.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/main-header-bg.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/main-header-bg.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/par-header.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/par-header.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/portlet-icon.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/portlet-icon.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/start-stop-bg.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/start-stop-bg.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/start-stop-edge.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/start-stop-edge.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/started-icon.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/started-icon.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/stopped-icon.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/stopped-icon.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/sub-header-bg.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/sub-header-bg.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/im= ages/admin/warning-icon.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: modules/portlet/trunk/portal/src/main/resources/simple= -portal-war/images/admin/warning-icon.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/js= /admin.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portal/src/main/resources/simple-portal-war/js/ad= min.js (rev 0) +++ modules/portlet/trunk/portal/src/main/resources/simple-portal-war/js/ad= min.js 2008-03-18 04:01:11 UTC (rev 10299) @@ -0,0 +1,56 @@ + + function collapse(e,target) { + e.hide(); + new Effect.BlindUp(target + '-target', {queue: {position:'front',= scope: 'expandscope', limit:1} }); + Effect.Appear('expand-' + target, { duration: 0.0 }); + } + + function expand(e,target) { + e.hide(); + Effect.BlindDown(target + '-target', {queue: {position:'end', sco= pe: 'expandscope', limit:1} }); + Effect.Appear('contract-' + target, { duration: 0.0 }); + } + + function collapseAll() { + var targets =3D document.getElementsByClassName('target'); + for (var i=3D0; i < targets.length; i++){ + try{ + var target =3D targets[i].id.substring(0,targets[i].id.last= IndexOf('-target')); + $('contract-' + target).hide(); + new Effect.BlindUp(target + '-target'); + Effect.Appear('expand-' + target, { duration: 0.0 }); + }catch(e){ +// alert(e); + } + } + } + + function expandAll() { + var targets =3D document.getElementsByClassName('target'); + for (var i=3D0; i < targets.length; i++){ + try{ + var target =3D targets[i].id.substring(0,targets[i].id.last= IndexOf('-target')); + $('expand-' + target).hide(); + new Effect.BlindDown(target + '-target'); + Effect.Appear('contract-' + target, { duration: 0.0 }); + }catch(e){ +// alert(e); + } + } + } + + window.onload =3D function(){ + var targets =3D document.getElementsByClassName('target'); + for (var i=3D0; i < targets.length; i++){ + try{ + //alert(targets[i].id.substring(0,targets[i].id.lastIndexOf= ('-target'))); + var atarget =3D targets[i].id.substring(0,targets[i].id.las= tIndexOf('-target')); + $('contract-' + atarget).hide(); + + new Effect.BlindUp(atarget + '-target'); + Effect.Appear('expand-' + atarget, { duration: 0.0 }); + }catch(e){ + //alert(e); + } + } + }; \ No newline at end of file Modified: modules/portlet/trunk/portal/src/main/resources/simple-portal-war= /layouts/header.jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/portal/src/main/resources/simple-portal-war/layou= ts/header.jsp 2008-03-17 22:53:22 UTC (rev 10298) +++ modules/portlet/trunk/portal/src/main/resources/simple-portal-war/layou= ts/header.jsp 2008-03-18 04:01:11 UTC (rev 10299) @@ -7,6 +7,7 @@ Portlet Container 2.0 + =