diff options
Diffstat (limited to 'share/www/document.html')
-rw-r--r-- | share/www/document.html | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/share/www/document.html b/share/www/document.html index 3f39cb75..f12adf68 100644 --- a/share/www/document.html +++ b/share/www/document.html @@ -25,20 +25,21 @@ specific language governing permissions and limitations under the License. <script src="script/jquery.dialog.js?0.9.0"></script> <script src="script/jquery.form.js?0.9.0"></script> <script src="script/jquery.resizer.js?0.9.0"></script> + <script src="script/futon.js?0.9.0"></script> <script src="script/browse.js?0.9.0"></script> <script src="script/pprint.js?0.9.0"></script> <script> var page = new CouchDocumentPage(); - $(function() { - $.get("_sidebar.html", function(resp) { - $(resp).insertAfter("#wrap"); - - updateNavigation( - location.pathname.replace(/document\.html/, "database.html"), - "?" + page.db.name); - }); + $.futon.navigation.ready(function() { + this.addDatabase(page.db.name); + this.updateSelection( + location.pathname.replace(/document\.html/, "database.html"), + "?" + page.db.name + ); + }); + $(function() { $("h1 a.dbname").text(page.dbName) .attr("href", "database.html?" + encodeURIComponent(page.db.name)); $("h1 strong").text(page.docId); |