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 @@
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript">
// On double-click, reformat <pre class="screen"> for easy copying.
+$(document).ready(function() {
+ $(".screen").attr("title", "Double-click to unwrap lines.");
+});
$(".screen").live("dblclick", function() {
$(this).replaceWith(
- "<pre class=\"flat\">" +
+ "<pre class=\"flat\" title=\"Double-click to wrap long lines.\">" +
$(this).text().replace(/\n /g," ") + "\n<!--" + $(this).text() + "-->" +
"</pre>");
});
$(".flat").live("dblclick", function() {
$(this).replaceWith(
- "<pre class=\"screen\">" +
+ "<pre class=\"screen\" title=\"Double-click to unwrap lines.\">" +
$(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"") +
"</pre>");
</script>
@@ -435,18 +438,21 @@
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript">
// On double-click, reformat <pre class="screen"> for easy copying.
+$(document).ready(function() {
+ $(".screen").attr("title", "Double-click to unwrap lines.");
+});
$(".screen").live("dblclick", function() {
$(this).replaceWith(
- "<pre class=\"flat\">" +
+ "<pre class=\"flat\" title=\"Double-click to wrap long lines.\">" +
$(this).text().replace(/\n /g," ") + "\n<!--" + $(this).text() + "-->" +
"</pre>");
});
$(".flat").live("dblclick", function() {
$(this).replaceWith(
- "<pre class=\"screen\">" +
+ "<pre class=\"screen\" title=\"Double-click to unwrap lines.\">" +
$(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"") +
"</pre>");
-});</script>
+</script>
<link rel="shortcut icon" href="http://forgerock.org/favicon.ico">
</head></replacevalue>
</replace>
--
Gitblit v1.10.0