Add close button into CRM view

This commit is contained in:
Hadi Nategh 2020-11-03 16:21:35 +01:00
parent f064ff8242
commit a1170ab939
3 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -54,6 +54,7 @@
<hbox>
<button id="button[edit]" label="open" background_image="1" image="edit" onclick="app.addressbook.view_actions"/>
<button id="button[copy]" label="copy" background_image="1" image="copy" onclick="app.addressbook.view_actions"/>
<button id="button[close]" label="close" background_image="1" readonly="false" image="close" onclick="app.addressbook.view_actions"/>
<buttononly id="button[delete]" label="delete" image="delete" onclick="app.addressbook.view_actions"/>
</hbox>
</row>