You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2007/10/28 23:40:09 UTC

svn commit: r589434 - in /cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources: META-INF/maven/site.vm js/ js/getBlank.js

Author: reinhard
Date: Sun Oct 28 15:40:07 2007
New Revision: 589434

URL: http://svn.apache.org/viewvc?rev=589434&view=rev
Log:
fix js for search box

Added:
    cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/js/
    cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/js/getBlank.js   (with props)
Modified:
    cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/META-INF/maven/site.vm

Modified: cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/META-INF/maven/site.vm
URL: http://svn.apache.org/viewvc/cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/META-INF/maven/site.vm?rev=589434&r1=589433&r2=589434&view=diff
==============================================================================
--- cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/META-INF/maven/site.vm (original)
+++ cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/META-INF/maven/site.vm Sun Oct 28 15:40:07 2007
@@ -214,6 +214,7 @@
       @import url("$relativePath/css/site.css");
     </style>
     <link rel="stylesheet" href="$relativePath/css/print.css" type="text/css" media="print" />
+    <script src="$relativePath/js/getBlank.js" language="javascript" type="text/javascript"></script>
     #foreach( $author in $authors )
       <meta name="author" content="$author" />
     #end

Added: cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/js/getBlank.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/js/getBlank.js?rev=589434&view=auto
==============================================================================
--- cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/js/getBlank.js (added)
+++ cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/js/getBlank.js Sun Oct 28 15:40:07 2007
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+function getBlank (form, stdValue){
+  if (form.value == stdValue){
+    form.value = '';
+  }
+  return true;
+}
\ No newline at end of file

Propchange: cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/js/getBlank.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/trunk/site/cocoon-thien-maven-site-skin/src/main/resources/js/getBlank.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain