aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wiki.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-10 17:35:05 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-10 17:35:05 +0100
commit2dfb4d0c17c1963d88a8219876ec89516358d0d9 (patch)
tree069c342ac33a54a84a1792c73876a16a12045954 /view/tpl/wiki.tpl
parent368ad332a0fcd1cd7404c24128b8cbc0454a0bcf (diff)
downloadvolse-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.tpl6
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>