couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r663929 - in /incubator/couchdb/trunk/share/www: browse/database.html browse/document.html browse/index.html couch_tests.html index.html replicator.html script/jquery.js
Date Fri, 06 Jun 2008 13:18:57 GMT
Author: cmlenz
Date: Fri Jun  6 06:18:56 2008
New Revision: 663929

URL: http://svn.apache.org/viewvc?rev=663929&view=rev
Log:
Add version tags for CSS and Javascript references in Futon to avoid stale caches.

Modified:
    incubator/couchdb/trunk/share/www/browse/database.html
    incubator/couchdb/trunk/share/www/browse/document.html
    incubator/couchdb/trunk/share/www/browse/index.html
    incubator/couchdb/trunk/share/www/couch_tests.html
    incubator/couchdb/trunk/share/www/index.html
    incubator/couchdb/trunk/share/www/replicator.html
    incubator/couchdb/trunk/share/www/script/jquery.js

Modified: incubator/couchdb/trunk/share/www/browse/database.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/database.html?rev=663929&r1=663928&r2=663929&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/database.html [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/browse/database.html [utf-8] Fri Jun  6 06:18:56 2008
@@ -17,16 +17,16 @@
   <head>
     <title>Browse Database</title>
     <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-    <link rel="stylesheet" href="../style/layout.css" type="text/css">
+    <link rel="stylesheet" href="../style/layout.css?0.8.0a" type="text/css">
     <script src="../script/json2.js"></script>
-    <script src="../script/jquery.js"></script>
-    <script src="../script/jquery.cookies.js"></script>
-    <script src="../script/jquery.couch.js"></script>
-    <script src="../script/jquery.dialog.js"></script>
-    <script src="../script/jquery.resizer.js"></script>
-    <script src="../script/jquery.suggest.js"></script>
-    <script src="../script/browse.js"></script>
-    <script src="../script/pprint.js"></script>
+    <script src="../script/jquery.js?1.2.6"></script>
+    <script src="../script/jquery.cookies.js?0.8.0a"></script>
+    <script src="../script/jquery.couch.js?0.8.0a"></script>
+    <script src="../script/jquery.dialog.js?0.8.0a"></script>
+    <script src="../script/jquery.resizer.js?0.8.0a"></script>
+    <script src="../script/jquery.suggest.js?0.8.0a"></script>
+    <script src="../script/browse.js?0.8.0a"></script>
+    <script src="../script/pprint.js?0.8.0a"></script>
     <script>
       var page = new CouchDatabasePage();
       if (window != parent) {

Modified: incubator/couchdb/trunk/share/www/browse/document.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/document.html?rev=663929&r1=663928&r2=663929&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/document.html [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/browse/document.html [utf-8] Fri Jun  6 06:18:56 2008
@@ -17,15 +17,15 @@
   <head>
     <title>View Document</title>
     <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-    <link rel="stylesheet" href="../style/layout.css" type="text/css">
+    <link rel="stylesheet" href="../style/layout.css?0.8.0a" type="text/css">
     <script src="../script/json2.js"></script>
-    <script src="../script/jquery.js"></script>
-    <script src="../script/jquery.cookies.js"></script>
-    <script src="../script/jquery.couch.js"></script>
-    <script src="../script/jquery.dialog.js"></script>
-    <script src="../script/jquery.resizer.js"></script>
-    <script src="../script/browse.js"></script>
-    <script src="../script/pprint.js"></script>
+    <script src="../script/jquery.js?1.2.6"></script>
+    <script src="../script/jquery.cookies.js?0.8.0a"></script>
+    <script src="../script/jquery.couch.js?0.8.0a"></script>
+    <script src="../script/jquery.dialog.js?0.8.0a"></script>
+    <script src="../script/jquery.resizer.js?0.8.0a"></script>
+    <script src="../script/browse.js?0.8.0a"></script>
+    <script src="../script/pprint.js?0.8.0a"></script>
     <script>
       var page = new CouchDocumentPage();
       if (window != parent) {

Modified: incubator/couchdb/trunk/share/www/browse/index.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/index.html?rev=663929&r1=663928&r2=663929&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/index.html [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/browse/index.html [utf-8] Fri Jun  6 06:18:56 2008
@@ -17,14 +17,14 @@
   <head>
     <title>Welcome</title>
     <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-    <link rel="stylesheet" href="../style/layout.css" type="text/css">
+    <link rel="stylesheet" href="../style/layout.css?0.8.0a" type="text/css">
     <script src="../script/json2.js"></script>
-    <script src="../script/jquery.js"></script>
-    <script src="../script/jquery.cookies.js"></script>
-    <script src="../script/jquery.couch.js"></script>
-    <script src="../script/jquery.dialog.js"></script>
-    <script src="../script/browse.js"></script>
-    <script src="../script/pprint.js"></script>
+    <script src="../script/jquery.js?1.2.6"></script>
+    <script src="../script/jquery.cookies.js?0.8.0a"></script>
+    <script src="../script/jquery.couch.js?0.8.0a"></script>
+    <script src="../script/jquery.dialog.js?0.8.0a"></script>
+    <script src="../script/browse.js?0.8.0a"></script>
+    <script src="../script/pprint.js?0.8.0a"></script>
     <script>
       var page = new CouchIndexPage();
       $(document).ready(function() {

Modified: incubator/couchdb/trunk/share/www/couch_tests.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/couch_tests.html?rev=663929&r1=663928&r2=663929&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/couch_tests.html [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/couch_tests.html [utf-8] Fri Jun  6 06:18:56 2008
@@ -17,11 +17,11 @@
   <head>
     <title>Test Suite</title>
     <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-    <link rel="stylesheet" href="style/layout.css" type="text/css">
+    <link rel="stylesheet" href="style/layout.css?0.8.0a" type="text/css">
     <script src="script/json2.js"></script>
-    <script src="script/jquery.js"></script>
-    <script src="script/couch.js"></script>
-    <script src="script/pprint.js"></script>
+    <script src="script/jquery.js?1.2.6"></script>
+    <script src="script/couch.js?0.8.0a"></script>
+    <script src="script/pprint.js?0.8.0a"></script>
     <script>
       $(document).ready(function() {
         $("#toolbar button.load").click(function() {

Modified: incubator/couchdb/trunk/share/www/index.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/index.html?rev=663929&r1=663928&r2=663929&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/index.html [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/index.html [utf-8] Fri Jun  6 06:18:56 2008
@@ -17,7 +17,7 @@
   <head>
     <title>Apache CouchDB: Futon Utility Client</title>
     <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-    <link rel="stylesheet" href="style/layout.css" type="text/css">
+    <link rel="stylesheet" href="style/layout.css?0.8.0a" type="text/css">
     <style type="text/css">
       html { height: 100%; overflow: hidden; }
       body { background: #fff url(image/bg.png) 100% 0 repeat-y;
@@ -27,8 +27,8 @@
       iframe { background: transparent; border: none; width: 100%; height: 100%; }
     </style>
     <script src="script/json2.js"></script>
-    <script src="script/jquery.js"></script>
-    <script src="script/jquery.couch.js"></script>
+    <script src="script/jquery.js?1.2.6"></script>
+    <script src="script/jquery.couch.js?0.8.0a"></script>
     <script>
       function updateDatabaseList() {
         var list = $("#dbs").empty();

Modified: incubator/couchdb/trunk/share/www/replicator.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/replicator.html?rev=663929&r1=663928&r2=663929&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/replicator.html [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/replicator.html [utf-8] Fri Jun  6 06:18:56 2008
@@ -17,11 +17,11 @@
   <head>
     <title>Replicator</title>
     <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-    <link rel="stylesheet" href="style/layout.css" type="text/css">
+    <link rel="stylesheet" href="style/layout.css?0.8.0a" type="text/css">
     <script src="script/json2.js"></script>
-    <script src="script/jquery.js"></script>
-    <script src="script/jquery.couch.js"></script>
-    <script src="script/pprint.js"></script>
+    <script src="script/jquery.js?1.2.6"></script>
+    <script src="script/jquery.couch.js?0.8.0a"></script>
+    <script src="script/pprint.js?0.8.0a"></script>
     <script>
       $(document).ready(function() {
         if (window !== parent) parent.updateNavigation();

Modified: incubator/couchdb/trunk/share/www/script/jquery.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/jquery.js?rev=663929&r1=663928&r2=663929&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/jquery.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/jquery.js [utf-8] Fri Jun  6 06:18:56 2008
@@ -1,13 +1,13 @@
 (function(){
 /*
- * jQuery 1.2.5 - New Wave Javascript
+ * jQuery 1.2.6 - New Wave Javascript
  *
  * Copyright (c) 2008 John Resig (jquery.com)
  * Dual licensed under the MIT (MIT-LICENSE.txt)
  * and GPL (GPL-LICENSE.txt) licenses.
  *
- * $Date: 2008-05-20 23:14:54 -0400 (Tue, 20 May 2008) $
- * $Rev: 5651 $
+ * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
+ * $Rev: 5685 $
  */
 
 // Map over jQuery in case of overwrite
@@ -84,7 +84,7 @@
 	},
 
 	// The current version of jQuery being used
-	jquery: "1.2.5",
+	jquery: "1.2.6",
 
 	// The number of elements contained in the matched element set
 	size: function() {
@@ -402,6 +402,9 @@
 			return undefined;
 		}
 
+		if( value.constructor == Number )
+			value += '';
+
 		return this.each(function(){
 			if ( this.nodeType != 1 )
 				return;
@@ -428,7 +431,7 @@
 
 	html: function( value ) {
 		return value == undefined ?
-			(this.length ?
+			(this[0] ?
 				this[0].innerHTML :
 				null) :
 			this.empty().append( value );
@@ -505,9 +508,9 @@
 					this;
 
 				// execute all scripts after the elements have been injected
-				if ( jQuery.nodeName( elem, "script" ) ) {
+				if ( jQuery.nodeName( elem, "script" ) )
 					scripts = scripts.add( elem );
-				} else {
+				else {
 					// Remove any inner scripts for later evaluation
 					if ( elem.nodeType == 1 )
 						scripts = scripts.add( jQuery( "script", elem ).remove() );
@@ -746,14 +749,14 @@
 	},
 
 	prop: function( elem, value, type, i, name ) {
-			// Handle executable functions
-			if ( jQuery.isFunction( value ) )
-				value = value.call( elem, i );
-
-			// Handle passing in a number to a CSS property
-			return value && value.constructor == Number && type == "curCSS" &&
!exclude.test( name ) ?
-				value + "px" :
-				value;
+		// Handle executable functions
+		if ( jQuery.isFunction( value ) )
+			value = value.call( elem, i );
+
+		// Handle passing in a number to a CSS property
+		return value && value.constructor == Number && type == "curCSS" &&
!exclude.test( name ) ?
+			value + "px" :
+			value;
 	},
 
 	className: {
@@ -1058,7 +1061,7 @@
 				elem.parentNode.selectedIndex;
 
 			// If applicable, access the attribute via the DOM 0 way
-			if ( notxml && !special && name in elem ) {
+			if ( name in elem && notxml && !special ) {
 				if ( set ){
 					// We can't allow the type property to be changed (since it causes problems in IE)
 					if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode
)
@@ -1081,11 +1084,13 @@
 				// convert the value to a string (all browsers do this but IE) see #1070
 				elem.setAttribute( name, "" + value );
 
-			if ( msie && special && notxml )
-				return elem.getAttribute( name, 2 );
-
-			return elem.getAttribute( name );
+			var attr = msie && notxml && special
+					// Some attributes require a special call on IE
+					? elem.getAttribute( name, 2 )
+					: elem.getAttribute( name );
 
+			// Non-existent attributes return null, we normalize to undefined
+			return attr === null ? undefined : attr;
 		}
 
 		// elem is actually elem.style ... set the style



Mime
View raw message