diff options
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> |