summaryrefslogtreecommitdiff
path: root/share/www/script/browse.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/browse.js')
-rw-r--r--share/www/script/browse.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/www/script/browse.js b/share/www/script/browse.js
index 8ef8ccfb..8291d914 100644
--- a/share/www/script/browse.js
+++ b/share/www/script/browse.js
@@ -507,6 +507,9 @@ function CouchDocumentPage() {
page = this;
this.addField = function() {
+ if (!$("#fields tbody.content:visible").length) {
+ $("#tabs li.tabular a").click(); // switch to tabular view
+ }
var fieldName = "unnamed";
var fieldIdx = 1;
while (page.doc.hasOwnProperty(fieldName)) {