better design doc formula
This commit is contained in:
parent
4866018100
commit
a6f285adfa
|
@ -14,7 +14,7 @@
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
$(function() {
|
$(function() {
|
||||||
var dbname = document.location.href.split('/')[3];
|
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);
|
var DB = $.couch.db(dbname);
|
||||||
DB.view(design+"/example",{success: function(json) {
|
DB.view(design+"/example",{success: function(json) {
|
||||||
$("#view").html(json.rows.map(function(row) {
|
$("#view").html(json.rows.map(function(row) {
|
||||||
|
|
Loading…
Reference in a new issue