diff --git a/static/coffee/view.coffee b/static/coffee/view.coffee index 4ea91cc..a63fb13 100644 --- a/static/coffee/view.coffee +++ b/static/coffee/view.coffee @@ -43,5 +43,14 @@ view_init = (docid) -> $('#subnav').show() $('#exitfullscreen').hide() - $('#toggle_annotations_button').click (e) -> - $('.annotation').toggle() + $('.view-states-btn').click -> + switch $(this).data 'view' + when 'everything' + $('.annotation-open').show() + $('.annotation-closed').show() + when 'only-open' + $('.annotation-open').show() + $('.annotation-closed').hide() + when 'nothing' + $('.annotation-open').hide() + $('.annotation-closed').hide() diff --git a/templates/view.html b/templates/view.html index fad027d..2d08e06 100644 --- a/templates/view.html +++ b/templates/view.html @@ -21,15 +21,18 @@ Full screen - - - Toggle annotations - List mode +

View

+ +
+ + + +

History