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 @@
<script type="text/javascript">
// On double-click, reformat <div class="screen"> 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("<pre />");
+ $(".programlisting").wrap("<pre />");
+ }
$(".screen").attr("title", "Double-click [-] to flatten lines.");
$(".screen").prepend('<img src="../images/minus.png" class="toggle">');
});
@@ -499,6 +504,11 @@
<script type="text/javascript">
// On double-click, reformat <div class="screen"> 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("<pre />");
+ $(".programlisting").wrap("<pre />");
+ }
$(".screen").attr("title", "Double-click [-] to flatten lines.");
$(".screen").prepend('<img src="./images/minus.png" class="toggle">');
});
--
Gitblit v1.10.0