basic implementation of open and edit on signature (no template for edit, and no action on delete yet)

This commit is contained in:
Klaus Leithoff 2013-10-18 14:04:04 +00:00
parent 61bcdd2137
commit 40bb1078af
3 changed files with 17 additions and 3 deletions

View File

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

View File

@ -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
*/

View File

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