archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r707814 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main: java/org/apache/maven/archiva/web/tags/ webapp/WEB-INF/jsp/admin/ webapp/WEB-INF/jsp/decorators/ webapp/js/jquery/ webapp/js/scriptaculous/
Date Sat, 25 Oct 2008 06:02:25 GMT
Author: brett
Date: Fri Oct 24 23:02:24 2008
New Revision: 707814

URL: http://svn.apache.org/viewvc?rev=707814&view=rev
Log:
convert from prototype + scriptaculous to jquery

Removed:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/jquery/date.js
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/jquery/jquery.datepicker.js
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/scriptaculous/
Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/CopyPasteSnippetTag.java
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/proxyConnectors.jsp
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/CopyPasteSnippetTag.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/CopyPasteSnippetTag.java?rev=707814&r1=707813&r2=707814&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/CopyPasteSnippetTag.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/CopyPasteSnippetTag.java
Fri Oct 24 23:02:24 2008
@@ -77,10 +77,8 @@
             
             if ( TOGGLE.equals( wrapper ) )
             {
-                prefix.append( "<a href=\"#\" onclick=\"Effect.toggle('repoPom" );
-                prefix.append( repo.getId() ).append( "','slide'); return false;\">Show
POM Snippet</a><br/>" );
-                prefix.append( "<pre class=\"pom\" style=\"display: none;\" id=\"repoPom"
).append( repo.getId() );
-                prefix.append( "\"><code>" );
+                prefix.append( "<a href=\"#\" class=\"expand\">Show POM Snippet</a><br/>"
);
+                prefix.append( "<pre class=\"pom\"><code>" );
         
                 suffix.append( "</code></pre>" );
             }

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/proxyConnectors.jsp
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/proxyConnectors.jsp?rev=707814&r1=707813&r2=707814&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/proxyConnectors.jsp
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/proxyConnectors.jsp
Fri Oct 24 23:02:24 2008
@@ -27,6 +27,19 @@
 <head>
   <title>Administration - Proxy Connectors</title>
   <s:head/>
+  <script type="text/javascript" src="<c:url value='/js/jquery/jquery-1.2.6.pack.js'/>"></script>
+  <script type="text/javascript">
+  $(document).ready(function(){
+    
+ $("table.settings").hide();
+ $("a.expand").click(function(event){
+   event.preventDefault();
+   $(this).next().toggle("slow");
+ });
+
+  });
+  </script>
+
 </head>
 
 <body>
@@ -161,8 +174,8 @@
       <p class="url"><a href="${repoMap[connector.targetRepoId].url}">${repoMap[connector.targetRepoId].url}</a></p>
     </div>
     
-    <a class="expand" href="#" onclick="Effect.toggle('proxySettings_${connector.sourceRepoId}_${connector.targetRepoId}','slide');
return false;">Expand</a>
-    <table class="settings" style="display: none;" id="proxySettings_${connector.sourceRepoId}_${connector.targetRepoId}">
+    <a class="expand" href="#">Settings</a>
+    <table class="settings">
       <tr>
         <th nowrap="nowrap">Network Proxy:</th>
         <td>

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp?rev=707814&r1=707813&r2=707814&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
Fri Oct 24 23:02:24 2008
@@ -26,6 +26,18 @@
 <head>
   <title>Administration - Repositories</title>
   <s:head/>
+  <script type="text/javascript" src="<c:url value='/js/jquery/jquery-1.2.6.pack.js'/>"></script>
+  <script type="text/javascript">
+  $(document).ready(function(){
+    
+ $(".pom").hide();
+ $("a.expand").click(function(event){
+   event.preventDefault();
+   $(this).siblings("pre").toggle("slow");
+ });
+
+  });
+  </script>
 </head>
 
 <body>

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp?rev=707814&r1=707813&r2=707814&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
Fri Oct 24 23:02:24 2008
@@ -39,9 +39,8 @@
   <link rel="stylesheet" href="<c:url value="/css/site.css"/>" type="text/css" media="all"/>
   <link rel="stylesheet" href="<c:url value="/css/print.css"/>" type="text/css"
media="print"/>
   <link rel="shortcut icon" href="<c:url value="/favicon.ico" />"/>
-  <script type="text/javascript" src="<c:url value="/js/scriptaculous/prototype.js"/>"></script>
-  <script type="text/javascript" src="<c:url value="/js/scriptaculous/scriptaculous.js"/>"></script>
   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+  <decorator:head />
 </head>
 
 <body onload="<decorator:getProperty property="body.onload" />" class="composite">



Mime
View raw message