better design doc formula
This commit is contained in:
parent
4866018100
commit
a6f285adfa
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue