summaryrefslogtreecommitdiff
path: root/share/www/database.html
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-01-14 21:59:48 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-01-14 21:59:48 +0000
commit892590e3a20c617b30ec8f89b0a895b753651e57 (patch)
treeebf61f745040329f32b56dcf5fc4678e6fa46b10 /share/www/database.html
parentfe135f33f6c817b96ff0f59f93c1040a087491e8 (diff)
Add view language selection to Futon, based on patch by Brian Palmer. Closes COUCHDB-202.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@734528 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/database.html')
-rw-r--r--share/www/database.html7
1 files changed, 2 insertions, 5 deletions
diff --git a/share/www/database.html b/share/www/database.html
index 3b968487..0d508794 100644
--- a/share/www/database.html
+++ b/share/www/database.html
@@ -72,8 +72,6 @@ specific language governing permissions and limitations under the License.
});
// Restore preferences/state from cookies
- var query = $.cookies.get(page.db.name + ".query");
- if (query) $("#viewcode_map").val(query);
var desc = $.cookies.get(page.db.name + ".desc");
if (desc) $("#documents thead th.key").addClass("desc");
var rowsPerPage = $.cookies.get(page.db.name + ".perpage");
@@ -137,9 +135,7 @@ specific language governing permissions and limitations under the License.
<table summary="View functions" cellspacing="0"><tr>
<td class="code map">
<label for="viewcode_map">Map Function:</label>
- <textarea id="viewcode_map" class="map" rows="5" cols="20" spellcheck="false" wrap="off">function(doc) {
- emit(null, doc);
-}</textarea>
+ <textarea id="viewcode_map" class="map" rows="5" cols="20" spellcheck="false" wrap="off"></textarea>
</td>
<td class="splitter"></td>
<td class="code reduce">
@@ -152,6 +148,7 @@ specific language governing permissions and limitations under the License.
<button class="saveas" type="button">Save As…</button>
<button class="revert" type="button" disabled>Revert</button>
<button class="run" type="button">Run</button>
+ <label>Language: <select id="language"></select></label>
</div>
</div>