From eebbabb66423c465bea16b6b67f7edb53295866a Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 29 Aug 2007 01:18:06 +0000 Subject: [PATCH] Not showing "Luminotes" notebook in list of notebooks, as it's kind of confusing. --- static/js/Wiki.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 3571337..ef892a6 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -62,6 +62,9 @@ Wiki.prototype.display_user = function ( result ) { for ( var i in result.notebooks ) { var notebook = result.notebooks[ i ]; + if ( notebook.name == "Luminotes" ) + continue; + var div_class = "link_area_item"; if ( notebook.object_id == this.notebook_id ) div_class += " current_notebook_name"; @@ -69,7 +72,7 @@ Wiki.prototype.display_user = function ( result ) { appendChildNodes( span, createDOM( "div", { "class": div_class }, createDOM( "a", { - "href": ( notebook.name == "Luminotes" ) ? "/" : "/notebooks/" + notebook.object_id, + "href": "/notebooks/" + notebook.object_id, "id": "notebook_" + notebook.object_id }, notebook.name ) ) ); }