From e42689b8dc67a17dd6f3ec77d4e784568ee9e828 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Tue, 28 Feb 2012 09:38:49 +0000
Subject: [PATCH] Fix for COMMWEB-44: Work around Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=116083

---
 opendj3/pom.xml |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/opendj3/pom.xml b/opendj3/pom.xml
index af3eb8b..9f15134 100644
--- a/opendj3/pom.xml
+++ b/opendj3/pom.xml
@@ -411,6 +411,11 @@
 &lt;script type="text/javascript"&gt;
 // On double-click, reformat &lt;div class="screen"&gt; for easy copying.
 $(document).ready(function() {
+  // Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=116083
+  if (navigator.userAgent.match(/Firefox/i)) {
+    $(".screen").wrap("&lt;pre /&gt;");
+    $(".programlisting").wrap("&lt;pre /&gt;");
+  }
   $(".screen").attr("title", "Double-click [-] to flatten lines.");
   $(".screen").prepend('&lt;img src="../images/minus.png" class="toggle"&gt;');
 });
@@ -499,6 +504,11 @@
 &lt;script type="text/javascript"&gt;
 // On double-click, reformat &lt;div class="screen"&gt; for easy copying.
 $(document).ready(function() {
+  // Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=116083
+  if (navigator.userAgent.match(/Firefox/i)) {
+    $(".screen").wrap("&lt;pre /&gt;");
+    $(".programlisting").wrap("&lt;pre /&gt;");
+  }
   $(".screen").attr("title", "Double-click [-] to flatten lines.");
   $(".screen").prepend('&lt;img src="./images/minus.png" class="toggle"&gt;');
 });

--
Gitblit v1.10.0