From 2dfb4d0c17c1963d88a8219876ec89516358d0d9 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 10 Dec 2016 17:35:05 +0100 Subject: fix typo and do not do anything on resize if not fullscreen --- view/tpl/wiki.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'view') 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(); + } }); -- cgit v1.2.3