From 2e125142b9935680ad9adb4dd9f8c1a0c4b57579 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Fri, 21 Oct 2011 09:57:03 +0000
Subject: [PATCH] A single click is too easily mixed up with a select
---
opendj-sdk/opendj3/pom.xml | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/opendj-sdk/opendj3/pom.xml b/opendj-sdk/opendj3/pom.xml
index 2a42c16..b2551a4 100644
--- a/opendj-sdk/opendj3/pom.xml
+++ b/opendj-sdk/opendj3/pom.xml
@@ -355,14 +355,14 @@
<replacevalue>
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript">
-// On click, reformat <pre class="screen"> for easy copying.
-$(".screen").live("click", function() {
+// On double-click, reformat <pre class="screen"> for easy copying.
+$(".screen").live("dblclick", function() {
$(this).replaceWith(
"<pre class=\"flat\">" +
$(this).text().replace(/\n /g," ") + "\n<!--" + $(this).text() + "-->" +
"</pre>");
});
-$(".flat").live("click", function() {
+$(".flat").live("dblclick", function() {
$(this).replaceWith(
"<pre class=\"screen\">" +
$(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"") +
@@ -434,14 +434,14 @@
<replacevalue>
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript">
-// On click, reformat <pre class="screen"> for easy copying.
-$(".screen").live("click", function() {
+// On double-click, reformat <pre class="screen"> for easy copying.
+$(".screen").live("dblclick", function() {
$(this).replaceWith(
"<pre class=\"flat\">" +
$(this).text().replace(/\n /g," ") + "\n<!--" + $(this).text() + "-->" +
"</pre>");
});
-$(".flat").live("click", function() {
+$(".flat").live("dblclick", function() {
$(this).replaceWith(
"<pre class=\"screen\">" +
$(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"") +
--
Gitblit v1.10.0