New "nothing but notes" mode, allowing you to hide everything on the page
except for your notes and the toolbar.
This commit is contained in:
parent
9bf3762fe6
commit
1d03540f71
5
NEWS
5
NEWS
|
@ -1,10 +1,13 @@
|
|||
1.3.2: April 18, 2008
|
||||
* New "nothing but notes" mode, allowing you to hide everything on the page
|
||||
except for your notes and the toolbar.
|
||||
|
||||
1.3.1: April 18, 2008
|
||||
* Now if you try to load a page where access is required, and you're not
|
||||
logged in, you'll be redirected to a login page. After you login, you'll
|
||||
be redirected to the page you were originally trying to access.
|
||||
* Fixed bug where recent notes were ordered by creation time instead of
|
||||
revision time.
|
||||
* Added RSS subscription link to all notebooks.
|
||||
|
||||
1.3.0: April 16, 2008
|
||||
* Created a new hierarchical note tree area for browsing notes.
|
||||
|
|
|
@ -359,6 +359,14 @@ Wiki.prototype.populate = function ( startup_notes, current_notes, note_read_wri
|
|||
event.stop();
|
||||
} );
|
||||
}
|
||||
|
||||
var declutter_link = getElement( "declutter_link" );
|
||||
if ( declutter_link ) {
|
||||
connect( declutter_link, "onclick", function ( event ) {
|
||||
self.declutter_clicked();
|
||||
event.stop();
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
Wiki.prototype.background_clicked = function ( event ) {
|
||||
|
@ -1532,6 +1540,57 @@ Wiki.prototype.display_invites = function ( invite_area ) {
|
|||
replaceChildNodes( invite_area, div );
|
||||
}
|
||||
|
||||
Wiki.prototype.declutter_clicked = function () {
|
||||
var header = getElement( "header" );
|
||||
if ( header )
|
||||
addElementClass( header, "undisplayed" );
|
||||
|
||||
var link_area_holder = getElement( "link_area_holder" );
|
||||
if ( link_area_holder )
|
||||
addElementClass( link_area_holder, "undisplayed" );
|
||||
|
||||
var note_tree_area_holder = getElement( "note_tree_area_holder" );
|
||||
if ( note_tree_area_holder )
|
||||
addElementClass( note_tree_area_holder, "undisplayed" );
|
||||
|
||||
var clutter_link = getElement( "clutter_link" );
|
||||
if ( clutter_link ) {
|
||||
removeElementClass( clutter_link, "undisplayed" );
|
||||
} else {
|
||||
clutter_link = createDOM(
|
||||
"a",
|
||||
{ "href": "#", "id": "clutter_link", "title": "Return to the full view of your notebook." },
|
||||
"show it all"
|
||||
);
|
||||
|
||||
appendChildNodes( "link_area", createDOM( "div", { "class": "link_area_item" }, clutter_link ) );
|
||||
|
||||
var self = this;
|
||||
connect( clutter_link, "onclick", function ( event ) {
|
||||
self.clutter_clicked();
|
||||
event.stop();
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
Wiki.prototype.clutter_clicked = function () {
|
||||
var header = getElement( "header" );
|
||||
if ( header )
|
||||
removeElementClass( header, "undisplayed" );
|
||||
|
||||
var link_area_holder = getElement( "link_area_holder" );
|
||||
if ( link_area_holder )
|
||||
removeElementClass( link_area_holder, "undisplayed" );
|
||||
|
||||
var note_tree_area_holder = getElement( "note_tree_area_holder" );
|
||||
if ( note_tree_area_holder )
|
||||
removeElementClass( note_tree_area_holder, "undisplayed" );
|
||||
|
||||
var clutter_link = getElement( "clutter_link" );
|
||||
if ( clutter_link )
|
||||
addElementClass( clutter_link, "undisplayed" );
|
||||
}
|
||||
|
||||
Wiki.prototype.move_current_notebook_up = function ( event ) {
|
||||
var current_notebook = getElement( "current_notebook_wrapper" );
|
||||
var sibling_notebook = current_notebook;
|
||||
|
|
|
@ -72,6 +72,7 @@ class Header( Div ):
|
|||
),
|
||||
class_ = u"wide_center_area",
|
||||
),
|
||||
id = u"header",
|
||||
class_ = u"header",
|
||||
)
|
||||
|
||||
|
|
|
@ -79,6 +79,16 @@ class Link_area( Div ):
|
|||
class_ = u"link_area_item",
|
||||
),
|
||||
|
||||
Div(
|
||||
A(
|
||||
u"nothing but notes",
|
||||
href = u"#",
|
||||
id = u"declutter_link",
|
||||
title = u"Focus on just your notes without any distractions.",
|
||||
),
|
||||
class_ = u"link_area_item",
|
||||
),
|
||||
|
||||
( notebook.owner and user.username ) and Div(
|
||||
A(
|
||||
u"share",
|
||||
|
|
Reference in New Issue