disable scrollIntoView

pull/16/head
Martin Zimmermann 11 years ago
parent 20f82dcfcd
commit fa277c98c1

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

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

Loading…
Cancel
Save