witten
/
luminotes
Archived
1
0
Fork 0

Not showing "Luminotes" notebook in list of notebooks, as it's kind of confusing.

This commit is contained in:
Dan Helfman 2007-08-29 01:18:06 +00:00
parent 191ced02f1
commit eebbabb664
1 changed files with 4 additions and 1 deletions

View File

@ -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 ) ) );
}