From 02ec04025baf2daf2308b068f8aed147d45037ca Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Fri, 21 Oct 2011 10:58:36 +0000
Subject: [PATCH] Hints on mouseover about double-click for line folding

---
 opendj3/pom.xml |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/opendj3/pom.xml b/opendj3/pom.xml
index b2551a4..d52f143 100644
--- a/opendj3/pom.xml
+++ b/opendj3/pom.xml
@@ -356,15 +356,18 @@
 &lt;script  src="http://code.jquery.com/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
 &lt;script type="text/javascript"&gt;
 // On double-click, reformat &lt;pre class="screen"&gt; for easy copying.
+$(document).ready(function() {
+  $(".screen").attr("title", "Double-click to unwrap lines.");
+});
 $(".screen").live("dblclick", function() {
   $(this).replaceWith(
-    "&lt;pre class=\"flat\"&gt;" +
+    "&lt;pre class=\"flat\" title=\"Double-click to wrap long lines.\"&gt;" +
     $(this).text().replace(/\n /g," ") + "\n&lt;!--" + $(this).text() + "--&gt;" +
     "&lt;/pre&gt;");
 });
 $(".flat").live("dblclick", function() {
   $(this).replaceWith(
-    "&lt;pre class=\"screen\"&gt;" +
+    "&lt;pre class=\"screen\" title=\"Double-click to unwrap lines.\"&gt;" +
     $(this).html().replace(/(.|\n)+&lt;!\-\-/m,"").replace(/\-\-\&gt;/,"") +
     "&lt;/pre&gt;");
 &lt;/script&gt;
@@ -435,18 +438,21 @@
 &lt;script  src="http://code.jquery.com/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
 &lt;script type="text/javascript"&gt;
 // On double-click, reformat &lt;pre class="screen"&gt; for easy copying.
+$(document).ready(function() {
+  $(".screen").attr("title", "Double-click to unwrap lines.");
+});
 $(".screen").live("dblclick", function() {
   $(this).replaceWith(
-    "&lt;pre class=\"flat\"&gt;" +
+    "&lt;pre class=\"flat\" title=\"Double-click to wrap long lines.\"&gt;" +
     $(this).text().replace(/\n /g," ") + "\n&lt;!--" + $(this).text() + "--&gt;" +
     "&lt;/pre&gt;");
 });
 $(".flat").live("dblclick", function() {
   $(this).replaceWith(
-    "&lt;pre class=\"screen\"&gt;" +
+    "&lt;pre class=\"screen\" title=\"Double-click to unwrap lines.\"&gt;" +
     $(this).html().replace(/(.|\n)+&lt;!\-\-/m,"").replace(/\-\-\&gt;/,"") +
     "&lt;/pre&gt;");
-});&lt;/script&gt;
+&lt;/script&gt;
 &lt;link rel="shortcut icon" href="http://forgerock.org/favicon.ico"&gt;
 &lt;/head&gt;</replacevalue>
                 </replace>

--
Gitblit v1.10.0