diff options
Diffstat (limited to 'share/www/script/browse.js')
-rw-r--r-- | share/www/script/browse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/browse.js b/share/www/script/browse.js index b08cbae6..9d821d09 100644 --- a/share/www/script/browse.js +++ b/share/www/script/browse.js @@ -277,7 +277,7 @@ function CouchDatabasePage() { var viewCode = $("#viewcode textarea").val(); var docId = ["_design", data.docid].join("/"); function save(doc) { - if (!doc) doc = {_id: docId, language: "text/javascript"}; + if (!doc) doc = {_id: docId, language: "javascript"}; if (doc.views === undefined) doc.views = {}; doc.views[data.name] = viewCode; db.saveDoc(doc, { |