summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-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) {