From fa277c98c1fbd1bd8602950d32e4d0ceccc573cd Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Mon, 9 Sep 2013 13:23:18 +0200 Subject: [PATCH] disable scrollIntoView --- isso/client/app/forms.js | 4 ++-- isso/client/app/isso.js | 2 +- isso/client/helper/identicons.js | 0 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 isso/client/helper/identicons.js diff --git a/isso/client/app/forms.js b/isso/client/app/forms.js index a3e7d63..85b00a7 100644 --- a/isso/client/app/forms.js +++ b/isso/client/app/forms.js @@ -15,8 +15,8 @@ define(["lib/HTML", "./logging"], function(HTML, logging) { textarea.value = defaults.text || ""; textarea.placeholder = "Kommentar hier eintippen (andere Felder sind optional)" textarea.onfocus = function() { - textarea.rows = 10 - form.scrollIntoView(false); + textarea.rows = 10; + // scrollIntoView enhancement }; textarea.onblur = function() { setTimeout(function() { if (textarea.value == "" && document.activeElement != textarea) { diff --git a/isso/client/app/isso.js b/isso/client/app/isso.js index 52bf244..ddd24e4 100644 --- a/isso/client/app/isso.js +++ b/isso/client/app/isso.js @@ -139,7 +139,7 @@ define(["lib/q", "lib/HTML", "helper/utils", "./api", "./forms", "./logging"], f HTML.query("#isso-" + comment.id).classList.add("isso-active-msgbox"); HTML.query("#isso-" + comment.id + " a.reply").textContent = "Schließen"; - msgbox.scrollIntoView(false); + // msgbox.scrollIntoView(false); msgbox.query("input[type=submit]").addEventListener("click", function(event) { forms.validate(msgbox) && api.create({ author: msgbox.query("[name=author]").value, diff --git a/isso/client/helper/identicons.js b/isso/client/helper/identicons.js new file mode 100644 index 0000000..e69de29