add resize button for better wiki reading

This commit is contained in:
Dmitriy Zaporozhets 2013-03-14 22:57:38 +02:00
parent a685624d27
commit 2681a01bcf
4 changed files with 24 additions and 17 deletions

View file

@ -53,6 +53,12 @@ $ ->
$('.trigger-submit').on 'change', ->
$(@).parents('form').submit()
# Wiki resizer
$('.wiki-fullscreen').on 'click', ->
$('.writeboards-menu').toggleClass('hide')
$('.writeboards-content').toggleClass('span9').toggleClass('span12')
# Flash
if (flash = $(".flash-container")).length > 0
flash.click -> $(@).fadeOut()