From a1170ab93956341afe94dd8f607bd35d34a9ec8e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 3 Nov 2020 16:21:35 +0100 Subject: [PATCH] Add close button into CRM view --- addressbook/js/app.js | 3 +++ addressbook/js/app.ts | 3 +++ addressbook/templates/default/view.xet | 1 + 3 files changed, 7 insertions(+) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index cc13a2de55..30fe634811 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -256,6 +256,9 @@ var AddressbookApp = /** @class */ (function (_super) { case 'button[delete]': et2_dialog.confirm(_widget, egw.lang('Delete this contact?'), egw.lang('Delete')); break; + case 'button[close]': + framework.activeApp.tab.closeButton.click(); + break; default: // submit all other buttons back to server et2.widgetContainer._inst.submit(); break; diff --git a/addressbook/js/app.ts b/addressbook/js/app.ts index 9fcaed8a75..b40fc7ab11 100644 --- a/addressbook/js/app.ts +++ b/addressbook/js/app.ts @@ -290,6 +290,9 @@ class AddressbookApp extends EgwApp case 'button[delete]': et2_dialog.confirm(_widget, egw.lang('Delete this contact?'), egw.lang('Delete')); break; + case 'button[close]': + framework.activeApp.tab.closeButton.click(); + break; default: // submit all other buttons back to server et2.widgetContainer._inst.submit(); break; diff --git a/addressbook/templates/default/view.xet b/addressbook/templates/default/view.xet index 48fddb0f6a..5cf7b2c9d1 100644 --- a/addressbook/templates/default/view.xet +++ b/addressbook/templates/default/view.xet @@ -54,6 +54,7 @@