adding images to mail Dialogs

This commit is contained in:
milan 2024-12-04 16:42:56 +01:00
parent 35256b731f
commit 28cbd71a90
2 changed files with 30 additions and 32 deletions

View File

@ -50,6 +50,7 @@ class Image
'calendar' => 'calendar3',
'call' => 'telephone',
'cancel' => 'x-square',
'cancelDialog' => 'x-lg',
'cancelled' => 'x-lg',
'check' => 'check-lg',
'close' => 'x-lg',

View File

@ -1590,7 +1590,7 @@ app.classes.mail = AppJS.extend(
var self = this;
var buttons = [
{label: this.egw.lang("Empty Trash and Junk"), id: "cleanup", class: "ui-priority-primary", default: true, image: "delete"},
{label: this.egw.lang("Cancel"), id: "cancel"}
{label: this.egw.lang("Cancel"), id: "cancel", image:'cancelDialog'}
];
var server = [{iface:{id: _data.data.profileid+'::'}}];
Et2Dialog.show_dialog(function (_button_id)
@ -2522,7 +2522,7 @@ app.classes.mail = AppJS.extend(
{
var buttons = [
{label: this.egw.lang("Yes"), id: "all", "class": "ui-priority-primary", "default": true, image: 'check'},
{label: this.egw.lang("Cancel"), id: "cancel"}
{label: this.egw.lang("Cancel"), id: "cancel", image: 'cancelDialog'},
];
var messageToDisplay = '';
var actionlabel =_action.id;
@ -2604,10 +2604,7 @@ app.classes.mail = AppJS.extend(
if (_action.id.substr(0, 4) == 'move') that.mail_callMove(_action, _elems, _target, rv);
if (_action.id.substr(0, 4) == 'copy') that.mail_callCopy(_action, _elems, _target, rv);
}
},
messageToDisplay,
this.egw.lang("Confirm"),
null, buttons);
}, messageToDisplay, this.egw.lang("Confirm"), null, buttons);
}
else
{
@ -3811,8 +3808,8 @@ app.classes.mail = AppJS.extend(
var ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]');
var OldFolderName = ftree.getLabel(_senders[0].id).replace(this._unseen_regexp,'');
var buttons = [
{label: this.egw.lang("Add"), id: "add", "class": "ui-priority-primary", "default": true},
{label: this.egw.lang("Cancel"), id: "cancel"}
{label: this.egw.lang("Add"), id: "add", image:'plus', "class": "ui-priority-primary", "default": true},
{label: this.egw.lang("Cancel"), id: "cancel", image:'cancelDialog'}
];
Et2Dialog.show_prompt(function (_button_id, _value)
{
@ -3852,7 +3849,7 @@ app.classes.mail = AppJS.extend(
var OldFolderName = ftree.getLabel(_senders[0].id).replace(this._unseen_regexp,'');
var buttons = [
{label: this.egw.lang("Rename"), id: "rename", "class": "ui-priority-primary", image: 'edit', "default": true},
{label: this.egw.lang("Cancel"), id: "cancel"}
{label: this.egw.lang("Cancel"), id: "cancel", image:'cancelDialog'}
];
Et2Dialog.show_prompt(function (_button_id, _value)
{
@ -5917,8 +5914,8 @@ app.classes.mail = AppJS.extend(
},
title: egw.lang('Request for passphrase'),
buttons: [
{label: this.egw.lang("Send"), id: "send", "class": "ui-priority-primary", "default": true},
{label: this.egw.lang("Cancel"), id: "cancel"}
{label: this.egw.lang("Send"), id: "send", image:'send', "class": "ui-priority-primary", "default": true},
{label: this.egw.lang("Cancel"), id: "cancel", image:'cancelDialog'}
],
value:{
content:{
@ -6088,7 +6085,7 @@ app.classes.mail = AppJS.extend(
var content = jQuery.extend(true, {message:_metadata.msg}, _metadata);
var buttons = [
{label: this.egw.lang("Close"), id: "close"}
{label: this.egw.lang("Close"), id: "close", image:'cancelDialog'}
];
if (!_display)
{