From 22da1e28bd68084cc5e13feab81db445775c6429 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sat, 2 Jan 2010 19:01:25 +0000 Subject: add button to cleanup old view files. closes COUCHDB-610. thanks Ilia Cheishvili git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@895262 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'share/www/script/couch.js') diff --git a/share/www/script/couch.js b/share/www/script/couch.js index f7d7d43d..19b98edb 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -243,6 +243,12 @@ function CouchDB(name, httpHeaders) { return JSON.parse(this.last_req.responseText); } + this.viewCleanup = function() { + this.last_req = this.request("POST", this.uri + "_view_cleanup"); + CouchDB.maybeThrowError(this.last_req); + return JSON.parse(this.last_req.responseText); + } + this.setDbProperty = function(propId, propValue) { this.last_req = this.request("PUT", this.uri + propId,{ body:JSON.stringify(propValue) -- cgit v1.2.3