couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r723793 - in /incubator/couchdb/trunk/share/www: browse/database.html script/browse.js
Date Fri, 05 Dec 2008 17:16:11 GMT
Author: cmlenz
Date: Fri Dec  5 09:16:09 2008
New Revision: 723793

URL: http://svn.apache.org/viewvc?rev=723793&view=rev
Log:
Don't automatically execute temp view in Futon when the page is loaded, but rather defer until
the Run button is clicked.

Modified:
    incubator/couchdb/trunk/share/www/browse/database.html
    incubator/couchdb/trunk/share/www/script/browse.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=723793&r1=723792&r2=723793&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/database.html [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/browse/database.html [utf-8] Fri Dec  5 09:16:09 2008
@@ -79,7 +79,12 @@
 
         page.populateViewsMenu();
         page.populateViewEditor();
-        page.updateDocumentListing();
+        if (!page.isTempView) {
+          page.updateDocumentListing();
+        } else {
+          $("#viewcode").show().removeClass("collapsed").find("textarea")[0].focus();
+          $("#documents").hide();
+        }
 
         $("#switch select").change(function() {
           var viewName = $(this).val();

Modified: incubator/couchdb/trunk/share/www/script/browse.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/browse.js?rev=723793&r1=723792&r2=723793&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/browse.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/browse.js [utf-8] Fri Dec  5 09:16:09 2008
@@ -115,6 +115,7 @@
   this.viewName = viewName;
   this.db = db;
   this.isDirty = false;
+  this.isTempView = viewName == "_temp_view";
   page = this;
 
   this.addDocument = function() {
@@ -393,7 +394,7 @@
       $.cookies.remove(dbName + ".desc");
     }
     $("#paging a").unbind();
-    $("#documents tbody.content").empty();
+    $("#documents").find("tbody.content").empty().end().show();
     this.updateDesignDocLink();
 
     options.success = function(resp) {



Mime
View raw message