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>
 &lt;script  src="http://code.jquery.com/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
 &lt;script type="text/javascript"&gt;
-// On click, reformat &lt;pre class="screen"&gt; for easy copying.
-$(".screen").live("click", function() {
+// On double-click, reformat &lt;pre class="screen"&gt; for easy copying.
+$(".screen").live("dblclick", function() {
   $(this).replaceWith(
     "&lt;pre class=\"flat\"&gt;" +
     $(this).text().replace(/\n /g," ") + "\n&lt;!--" + $(this).text() + "--&gt;" +
     "&lt;/pre&gt;");
 });
-$(".flat").live("click", function() {
+$(".flat").live("dblclick", function() {
   $(this).replaceWith(
     "&lt;pre class=\"screen\"&gt;" +
     $(this).html().replace(/(.|\n)+&lt;!\-\-/m,"").replace(/\-\-\&gt;/,"") +
@@ -434,14 +434,14 @@
                   <replacevalue>
 &lt;script  src="http://code.jquery.com/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
 &lt;script type="text/javascript"&gt;
-// On click, reformat &lt;pre class="screen"&gt; for easy copying.
-$(".screen").live("click", function() {
+// On double-click, reformat &lt;pre class="screen"&gt; for easy copying.
+$(".screen").live("dblclick", function() {
   $(this).replaceWith(
     "&lt;pre class=\"flat\"&gt;" +
     $(this).text().replace(/\n /g," ") + "\n&lt;!--" + $(this).text() + "--&gt;" +
     "&lt;/pre&gt;");
 });
-$(".flat").live("click", function() {
+$(".flat").live("dblclick", function() {
   $(this).replaceWith(
     "&lt;pre class=\"screen\"&gt;" +
     $(this).html().replace(/(.|\n)+&lt;!\-\-/m,"").replace(/\-\-\&gt;/,"") +

--
Gitblit v1.10.0