mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
basic implementation of open and edit on signature (no template for edit, and no action on delete yet)
This commit is contained in:
parent
61bcdd2137
commit
40bb1078af
@ -105,7 +105,7 @@ class mail_signatures
|
|||||||
'caption' => lang('Open'),
|
'caption' => lang('Open'),
|
||||||
'icon' => 'view',
|
'icon' => 'view',
|
||||||
'group' => ++$group,
|
'group' => ++$group,
|
||||||
'onExecute' => 'javaScript:app.mail.mail_open',
|
'onExecute' => 'javaScript:app.mail.signature_open',
|
||||||
'allowOnMultiple' => false,
|
'allowOnMultiple' => false,
|
||||||
'default' => true,
|
'default' => true,
|
||||||
),
|
),
|
||||||
@ -113,7 +113,7 @@ class mail_signatures
|
|||||||
'caption' => lang('delete'),
|
'caption' => lang('delete'),
|
||||||
'icon' => 'delete',
|
'icon' => 'delete',
|
||||||
'group' => ++$group,
|
'group' => ++$group,
|
||||||
'onExecute' => 'javaScript:app.mail.mail_open',
|
'onExecute' => 'javaScript:app.mail.signature_delete',
|
||||||
'allowOnMultiple' => false,
|
'allowOnMultiple' => false,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -1757,6 +1757,20 @@ app.mail = AppJS.extend(
|
|||||||
this.et2_obj.submit();
|
this.et2_obj.submit();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
signature_open: function(_egw, _widget)
|
||||||
|
{
|
||||||
|
var id = _widget[0].id.replace(/row_/,'');
|
||||||
|
var siggrid = this.et2.getArrayMgr("content").getEntry('sig')[id];
|
||||||
|
console.log(_egw, _widget,siggrid,id);
|
||||||
|
},
|
||||||
|
|
||||||
|
signature_delete: function(_egw, _widget)
|
||||||
|
{
|
||||||
|
var id = _widget[0].id.replace(/row_/,'');
|
||||||
|
var siggrid = this.et2.getArrayMgr("content").getEntry('sig')[id];
|
||||||
|
console.log(_egw, _widget);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Focus handler for folder, address, reject textbox/taglist to automatic check associated radio button
|
* Focus handler for folder, address, reject textbox/taglist to automatic check associated radio button
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<!-- $Id$ -->
|
<!-- $Id$ -->
|
||||||
<overlay>
|
<overlay>
|
||||||
<template id="mail.signatures.index.rows" template="" lang="" group="0" version="1.9.001">
|
<template id="mail.signatures.index.rows" template="" lang="" group="0" version="1.9.001">
|
||||||
<grid width="100%" id="sig" sortable="mail.mail_sieve.ajax_moveRule" class="egwGridView_grid">
|
<grid width="100%" id="sig" class="egwGridView_grid">
|
||||||
<columns>
|
<columns>
|
||||||
<column/>
|
<column/>
|
||||||
<column/>
|
<column/>
|
||||||
|
Loading…
Reference in New Issue
Block a user