mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +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'),
|
||||
'icon' => 'view',
|
||||
'group' => ++$group,
|
||||
'onExecute' => 'javaScript:app.mail.mail_open',
|
||||
'onExecute' => 'javaScript:app.mail.signature_open',
|
||||
'allowOnMultiple' => false,
|
||||
'default' => true,
|
||||
),
|
||||
@ -113,7 +113,7 @@ class mail_signatures
|
||||
'caption' => lang('delete'),
|
||||
'icon' => 'delete',
|
||||
'group' => ++$group,
|
||||
'onExecute' => 'javaScript:app.mail.mail_open',
|
||||
'onExecute' => 'javaScript:app.mail.signature_delete',
|
||||
'allowOnMultiple' => false,
|
||||
),
|
||||
);
|
||||
|
@ -1757,6 +1757,20 @@ app.mail = AppJS.extend(
|
||||
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
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
<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>
|
||||
<column/>
|
||||
<column/>
|
||||
|
Loading…
Reference in New Issue
Block a user