From 8d5893d515e3e84b9e991f9966d1c96beccff474 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 15 Jan 2020 08:52:49 +0100 Subject: [PATCH] a couple of small fixes from the conversation to TypeScript --- api/js/jsapi/app_base.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/js/jsapi/app_base.js b/api/js/jsapi/app_base.js index 1e9085c17b..dbec5b7859 100644 --- a/api/js/jsapi/app_base.js +++ b/api/js/jsapi/app_base.js @@ -599,7 +599,7 @@ var AppJS = (function(){ "use strict"; return Class.extend( add_favorite: function(state) { if(typeof this.favorite_popup == "undefined" || // Create popup if it's not defined yet - (this.favorite_popup && typeof this.favorite_popup.group !="undefiend" + (this.favorite_popup && typeof this.favorite_popup.group != "undefined" && !this.favorite_popup.group.isAttached())) // recreate the favorite popup if the group selectbox is not attached (eg. after et2 submit) { this._create_favorite_popup(); @@ -1656,12 +1656,12 @@ var AppJS = (function(){ "use strict"; return Class.extend( function(_url, _status){ if (_status == 0) { - et2_dialog.alert(lang('Mailvelope addon installation succeded. Now you may configure the options.')); + et2_dialog.alert(egw.lang('Mailvelope addon installation succeded. Now you may configure the options.')); return; } else { - et2_dialog.alert(lang('Mailvelope addon installation failed! Please try again.')); + et2_dialog.alert(egw.lang('Mailvelope addon installation failed! Please try again.')); } }); }