Not showing "Luminotes" notebook in list of notebooks, as it's kind of confusing.
This commit is contained in:
parent
191ced02f1
commit
eebbabb664
|
@ -62,6 +62,9 @@ Wiki.prototype.display_user = function ( result ) {
|
||||||
for ( var i in result.notebooks ) {
|
for ( var i in result.notebooks ) {
|
||||||
var notebook = result.notebooks[ i ];
|
var notebook = result.notebooks[ i ];
|
||||||
|
|
||||||
|
if ( notebook.name == "Luminotes" )
|
||||||
|
continue;
|
||||||
|
|
||||||
var div_class = "link_area_item";
|
var div_class = "link_area_item";
|
||||||
if ( notebook.object_id == this.notebook_id )
|
if ( notebook.object_id == this.notebook_id )
|
||||||
div_class += " current_notebook_name";
|
div_class += " current_notebook_name";
|
||||||
|
@ -69,7 +72,7 @@ Wiki.prototype.display_user = function ( result ) {
|
||||||
appendChildNodes( span, createDOM( "div", {
|
appendChildNodes( span, createDOM( "div", {
|
||||||
"class": div_class
|
"class": div_class
|
||||||
}, createDOM( "a", {
|
}, createDOM( "a", {
|
||||||
"href": ( notebook.name == "Luminotes" ) ? "/" : "/notebooks/" + notebook.object_id,
|
"href": "/notebooks/" + notebook.object_id,
|
||||||
"id": "notebook_" + notebook.object_id
|
"id": "notebook_" + notebook.object_id
|
||||||
}, notebook.name ) ) );
|
}, notebook.name ) ) );
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue