Mobile: client_js darf nicht versuchen den Header zu scrollen
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 26 Mar 2021 18:20:43 +0000 (19:20 +0100)
committerSven Schöling <s.schoeling@googlemail.com>
Fri, 25 Jun 2021 13:51:32 +0000 (15:51 +0200)
js/client_js.js

index d231d10..c9a1524 100644 (file)
@@ -8,7 +8,7 @@ namespace("kivi", function(ns) {
 ns.display_flash = function(type, message, noscroll) {
   $('#flash_' + type + '_content').text(message);
   $('#flash_' + type).show();
-  if (!noscroll) {
+  if (!noscroll && $('#frame-header')[0]) {
     $('#frame-header')[0].scrollIntoView();
   }
 };