diff options
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/futon.browse.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 84b3474e..a101138f 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -255,7 +255,7 @@ db.openDoc(resp.rows[i].id, { success: function(doc) { var optGroup = $(document.createElement("optgroup")) - .attr("label", doc._id.substr(8)); + .attr("label", doc._id.substr(8)).appendTo(select); for (var name in doc.views) { var option = $(document.createElement("option")) .attr("value", encodeURIComponent(doc._id) + "/_view/" + @@ -265,7 +265,6 @@ option[0].selected = true; } } - optGroup.appendTo(select); } }); } |