diff --git a/THANKS b/THANKS index f5270508..307fb3df 100644 --- a/THANKS +++ b/THANKS @@ -8,6 +8,7 @@ changes. A list of these people is included below. * Chris Anderson * William Beh + * Yoan Blanc * Benoit Chesneau * Paul Joseph Davis * Till Klampaeckel diff --git a/share/www/script/browse.js b/share/www/script/browse.js index 7c6440dd..fa8abfbd 100644 --- a/share/www/script/browse.js +++ b/share/www/script/browse.js @@ -178,9 +178,12 @@ function CouchDatabasePage() { db.openDoc(resp.rows[i].id, { success: function(doc) { var optGroup = $("").attr("label", doc._id.substr(8)); + var optGroup = $(document.createElement("optgroup")) + .attr("label", doc._id.substr(8)); for (var name in doc.views) { if (!doc.views.hasOwnProperty(name)) continue; - var option = $("").attr("value", doc._id + "/" + name).text(name) + var option = $(document.createElement("option")) + .attr("value", doc._id + "/" + name).text(name) .appendTo(optGroup); if (doc._id + "/" + name == viewName) { option[0].selected = true;