From 6d8220629c0bb1fd5768be4b051ead446ad8e76c Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Thu, 30 Aug 2012 19:37:57 -0600 Subject: [PATCH] Fix #500 --- lib/gollum/frontend/public/gollum/livepreview/index.html | 2 +- .../frontend/public/gollum/livepreview/js/livepreview.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/gollum/frontend/public/gollum/livepreview/index.html b/lib/gollum/frontend/public/gollum/livepreview/index.html index 828a6317..3f29164e 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/index.html +++ b/lib/gollum/frontend/public/gollum/livepreview/index.html @@ -16,7 +16,7 @@ Toggle left to right -
+
diff --git a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js index 923f3689..67bea80a 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js +++ b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js @@ -465,6 +465,11 @@ var applyTimeout = function () { win.jsm.resize = resize; + // remove editor_bg after loading because + // it'll cause problems if toggle left right is used + var ebg = doc.getElementById('editor_bg'); + ebg.parentNode.removeChild(ebg); + /* Resize can be called an absurd amount of times and will crash the page without debouncing.