diff --git a/apps/i2ptunnel/jsp/editClient.jsi b/apps/i2ptunnel/jsp/editClient.jsi
index 2b0c491939..e0bafbdb49 100644
--- a/apps/i2ptunnel/jsp/editClient.jsi
+++ b/apps/i2ptunnel/jsp/editClient.jsi
@@ -504,7 +504,7 @@
- " tabindex="0" onblur="resetScrollLeft(this)"><%=destb64%>
+ " tabindex="0"><%=destb64%>
|
diff --git a/apps/i2ptunnel/jsp/editServer.jsi b/apps/i2ptunnel/jsp/editServer.jsi
index c731cb40fd..8b07eadddc 100644
--- a/apps/i2ptunnel/jsp/editServer.jsi
+++ b/apps/i2ptunnel/jsp/editServer.jsi
@@ -181,7 +181,7 @@
|
- " tabindex="0" onblur="resetScrollLeft(this)"><%=editBean.getDestinationBase64(curTunnel)%>
+ " tabindex="0"><%=editBean.getDestinationBase64(curTunnel)%>
|
<%
String value3 = editBean.getPrivateKeyFile(curTunnel);
@@ -739,7 +739,7 @@
|
- " onblur="resetScrollLeft(this)"><%=ab64%>
+ "><%=ab64%>
|
diff --git a/apps/routerconsole/jsp/js/resetScroll.js b/apps/routerconsole/jsp/js/resetScroll.js
index 0c7a578d6b..3abb5a4d47 100644
--- a/apps/routerconsole/jsp/js/resetScroll.js
+++ b/apps/routerconsole/jsp/js/resetScroll.js
@@ -1,3 +1,21 @@
+function initResetScroll()
+{
+ var buttons = document.getElementsByClassName("resetScrollLeft");
+ for(index = 0; index < buttons.length; index++)
+ {
+ var button = buttons[index];
+ addBlurHandler(button);
+ }
+}
+
+function addBlurHandler(elem)
+{
+ elem.addEventListener("blur", function() {
+ resetScrollLeft(elem);
+ });
+}
+
+
// resets scroll position of element
// use with onblur to clear scroll position when element loses focus
@@ -9,7 +27,11 @@ function resetScrollLeft(element) {
}
// reset scroll to top position
-
+// unused
function resetScrollTop(element) {
element.scrollTop = 0;
-}
\ No newline at end of file
+}
+
+document.addEventListener("DOMContentLoaded", function() {
+ initResetScroll();
+}, true);
diff --git a/apps/susidns/src/jsp/addressbook.jsp b/apps/susidns/src/jsp/addressbook.jsp
index 56db76adac..d15635c721 100644
--- a/apps/susidns/src/jsp/addressbook.jsp
+++ b/apps/susidns/src/jsp/addressbook.jsp
@@ -201,7 +201,7 @@ ${book.loadBookMessages}
| ">b32 |
">link |
"><%=intl._t("details")%> |
-${addr.destination} |
+${addr.destination} |
"> |