diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-12-10 17:35:05 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-12-10 17:35:05 +0100 |
commit | 2dfb4d0c17c1963d88a8219876ec89516358d0d9 (patch) | |
tree | 069c342ac33a54a84a1792c73876a16a12045954 /view/tpl/wiki.tpl | |
parent | 368ad332a0fcd1cd7404c24128b8cbc0454a0bcf (diff) | |
download | volse-hubzilla-2dfb4d0c17c1963d88a8219876ec89516358d0d9.tar.gz volse-hubzilla-2dfb4d0c17c1963d88a8219876ec89516358d0d9.tar.bz2 volse-hubzilla-2dfb4d0c17c1963d88a8219876ec89516358d0d9.zip |
fix typo and do not do anything on resize if not fullscreen
Diffstat (limited to 'view/tpl/wiki.tpl')
-rw-r--r-- | view/tpl/wiki.tpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index 617355ccf..bc5717fea 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -172,7 +172,7 @@ $('#edit-pane-tab').click(function (ev) { setTimeout(function() { window.editor.focus(); - if($('main').hasClass('.fullscreen')) { + if($('main').hasClass('fullscreen')) { adjustFullscreenEditorHeight(); } else { @@ -473,6 +473,8 @@ }); $(window).resize(function () { - adjustFullscreenEditorHeight(); + if($('main').hasClass('fullscreen')) { + adjustFullscreenEditorHeight(); + } }); </script> |