From 8809a1828477101ade03b261662df089e268ecb4 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 27 Dec 2012 08:58:06 -0500
Subject: [PATCH] Fix regression in handling of content frames (#1488884)

---
 program/js/app.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 4935dce..5b8c2cd 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -441,10 +441,11 @@
 
         this.enable_command('login', true);
         break;
+    }
 
-      default:
-        break;
-      }
+    // unset contentframe variable if preview_pane is enabled
+    if (this.env.contentframe && !$('#' + this.env.contentframe).is(':visible'))
+      this.env.contentframe = null;
 
     // prevent from form submit with Enter key in file input fields
     if (bw.ie)

--
Gitblit v1.9.1