disable scrollIntoView

This commit is contained in:
Martin Zimmermann 2013-09-09 13:23:18 +02:00
parent 20f82dcfcd
commit fa277c98c1
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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,

View File