summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-05-23 13:38:01 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-05-23 13:38:01 +0000
commit87e11f55ecf0c87bdd36906bf7d662cd091cf3e6 (patch)
treeb6d117ee770c799540a870df78077a38a6c50c52 /share/www
parentbe2c4f871ab7186fa25fa3f3b42e7169cd5c9a10 (diff)
Fix 'save as' for map/reduce views in Futon.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@659537 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/browse/database.html2
-rw-r--r--share/www/script/browse.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/share/www/browse/database.html b/share/www/browse/database.html
index 51cc19f4..e84c9798 100644
--- a/share/www/browse/database.html
+++ b/share/www/browse/database.html
@@ -111,7 +111,7 @@ specific language governing permissions and limitations under the License.
<div id="viewcode" style="display: none">
<div class="top">
<a id="designdoc-link"></a>
- <span id="view-toggle">View Function</span>
+ <span id="view-toggle">View Code</span>
</div>
<div class="code map">
<label>Map Function:</label>
diff --git a/share/www/script/browse.js b/share/www/script/browse.js
index 6b8546ac..ebf3916f 100644
--- a/share/www/script/browse.js
+++ b/share/www/script/browse.js
@@ -154,7 +154,7 @@ function CouchDatabasePage() {
}
}, 100);
}
- $("#viewcode_map").bind("input", updateDirtyState);
+ $("#viewcode textarea").bind("input", updateDirtyState);
if ($.browser.msie) { // sorry, browser detection
$("#viewcode textarea").get(0).onpropertychange = updateDirtyState
} else if ($.browser.safari) {
@@ -279,7 +279,7 @@ function CouchDatabasePage() {
} else {
var viewCode = {
map: $("#viewcode_map").val(),
- reduce: $("#viewcode_map").val() || undefined
+ reduce: $("#viewcode_reduce").val() || undefined
};
var docId = ["_design", data.docid].join("/");
function save(doc) {