better design doc formula

This commit is contained in:
Chris Anderson 2008-11-02 17:37:34 -08:00
parent 4866018100
commit a6f285adfa

View file

@ -14,7 +14,7 @@
<script type="text/javascript" charset="utf-8">
$(function() {
var dbname = document.location.href.split('/')[3];
var design = unescape(document.location.href.split('/')[4]).split('/')[1];
var design = unescape(document.location.href).split('/')[5];
var DB = $.couch.db(dbname);
DB.view(design+"/example",{success: function(json) {
$("#view").html(json.rows.map(function(row) {