disable scrollIntoView
This commit is contained in:
parent
20f82dcfcd
commit
fa277c98c1
@ -15,8 +15,8 @@ define(["lib/HTML", "./logging"], function(HTML, logging) {
|
|||||||
textarea.value = defaults.text || "";
|
textarea.value = defaults.text || "";
|
||||||
textarea.placeholder = "Kommentar hier eintippen (andere Felder sind optional)"
|
textarea.placeholder = "Kommentar hier eintippen (andere Felder sind optional)"
|
||||||
textarea.onfocus = function() {
|
textarea.onfocus = function() {
|
||||||
textarea.rows = 10
|
textarea.rows = 10;
|
||||||
form.scrollIntoView(false);
|
// scrollIntoView enhancement
|
||||||
};
|
};
|
||||||
textarea.onblur = function() { setTimeout(function() {
|
textarea.onblur = function() { setTimeout(function() {
|
||||||
if (textarea.value == "" && document.activeElement != textarea) {
|
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).classList.add("isso-active-msgbox");
|
||||||
HTML.query("#isso-" + comment.id + " a.reply").textContent = "Schließen";
|
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) {
|
msgbox.query("input[type=submit]").addEventListener("click", function(event) {
|
||||||
forms.validate(msgbox) && api.create({
|
forms.validate(msgbox) && api.create({
|
||||||
author: msgbox.query("[name=author]").value,
|
author: msgbox.query("[name=author]").value,
|
||||||
|
0
isso/client/helper/identicons.js
Normal file
0
isso/client/helper/identicons.js
Normal file
Loading…
Reference in New Issue
Block a user