fix 2 JS errors in mobile mail, while search for another

This commit is contained in:
ralf 2023-11-15 16:13:58 +02:00
parent 41e102f015
commit c897b03f71
2 changed files with 2 additions and 2 deletions

View File

@ -4700,7 +4700,7 @@ app.classes.mail = AppJS.extend(
if (typeof widgets[widget].widget != 'undefined'
&& typeof widgets[expanderBtn].widget != 'undefined'
&& widgets[widget].widget.get_value().length == 0
&& (!widgets[widget].widget.value || !widgets[widget].widget.value.length)
&& actions.indexOf(expanderBtn)<0)
{
widgets[expanderBtn].widget.set_disabled(false);

View File

@ -834,7 +834,7 @@ import {tapAndSwipe} from "../../api/js/tapandswipe";
{
for (var i=0; i < window.framework.popups.length; i++)
{
if (window.framework.popups[i].$iFrame[0].contentWindow === _wnd)
if (window.framework.popups[i].$iFrame && window.framework.popups[i].$iFrame[0].contentWindow === _wnd)
{
return i;
}