couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1147831 - in /couchdb/trunk/share/www/script: couch.js couch_tests.js
Date Mon, 18 Jul 2011 12:30:41 GMT
Author: jan
Date: Mon Jul 18 12:30:41 2011
New Revision: 1147831

URL: http://svn.apache.org/viewvc?rev=1147831&view=rev
Log:
couch.js: move protocol detection into couch.js

Modified:
    couchdb/trunk/share/www/script/couch.js
    couchdb/trunk/share/www/script/couch_tests.js

Modified: couchdb/trunk/share/www/script/couch.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/couch.js?rev=1147831&r1=1147830&r2=1147831&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/couch.js [utf-8] Mon Jul 18 12:30:41 2011
@@ -471,3 +471,13 @@ CouchDB.params = function(options) {
   }
   return returnArray.join("&");
 };
+// Used by replication test
+if (typeof window == 'undefined' || !window) {
+  CouchDB.host = "127.0.0.1:5984";
+  CouchDB.protocol = "http://";
+  CouchDB.inBrowser = false;
+} else {
+  CouchDB.host = window.location.host;
+  CouchDB.inBrowser = true;
+  CouchDB.protocol = window.location.protocol + "//";
+}

Modified: couchdb/trunk/share/www/script/couch_tests.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/couch_tests.js?rev=1147831&r1=1147830&r2=1147831&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch_tests.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/couch_tests.js [utf-8] Mon Jul 18 12:30:41 2011
@@ -10,16 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-// Used by replication test
-if (typeof window == 'undefined' || !window) {
-  CouchDB.host = "127.0.0.1:5984";
-  CouchDB.protocol = "http://";
-  CouchDB.inBrowser = false;
-} else {
-  CouchDB.host = window.location.host;
-  CouchDB.inBrowser = true;
-  CouchDB.protocol = window.location.protocol + "//";
-}
 
 CouchDB.urlPrefix = "..";
 var couchTests = {};



Mime
View raw message