[Vtigercrm-commits] [vtiger-commits] r6573 - in /vtigercrm/trunk: Smarty/templates/Webmails.tpl modules/Webmails/language/en_us.lang.php modules/Webmails/webmails.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat May 27 23:58:39 EDT 2006
Author: mmbrich
Date: Sat May 27 21:58:38 2006
New Revision: 6573
Log:
mass delete function
Modified:
vtigercrm/trunk/Smarty/templates/Webmails.tpl
vtigercrm/trunk/modules/Webmails/language/en_us.lang.php
vtigercrm/trunk/modules/Webmails/webmails.js
Modified: vtigercrm/trunk/Smarty/templates/Webmails.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Webmails.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Webmails.tpl Sat May 27 21:58:38 2006
@@ -102,7 +102,9 @@
<td> </td>
<td class="delBg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
- <td width="45%"><input type="button" name="Button2" value=" {$MOD.LBL_MOVE_TO} " class="classWebBtn" onclick="move_messages();"/> {$FOLDER_SELECT}
+ <td width="45%">
+ <input type="button" name="mass_del" value=" {$MOD.LBL_DELETE} " class="classWebBtn" onclick="mass_delete();"/>
+ <input type="button" name="Button2" value=" {$MOD.LBL_MOVE_TO} " class="classWebBtn" onclick="move_messages();"/><br> {$FOLDER_SELECT}
</td>
{if $DEGRADED_SERVICE eq 'false'}
<td width="75%" align="right">
Modified: vtigercrm/trunk/modules/Webmails/language/en_us.lang.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/language/en_us.lang.php (original)
+++ vtigercrm/trunk/modules/Webmails/language/en_us.lang.php Sat May 27 21:58:38 2006
@@ -30,6 +30,7 @@
'LBL_LIST_DATE'=>'Date Sent',
'LBL_LIST_TIME'=>'Time Sent',
'LBL_MOVE_TO'=>'Move To',
+'LBL_DELETE'=>'Delete',
'ERR_DELETE_RECORD'=>"A record number must be specified to delete the account.",
'LBL_DATE_SENT'=>'Date Sent:',
Modified: vtigercrm/trunk/modules/Webmails/webmails.js
==============================================================================
--- vtigercrm/trunk/modules/Webmails/webmails.js (original)
+++ vtigercrm/trunk/modules/Webmails/webmails.js Sat May 27 21:58:38 2006
@@ -223,6 +223,20 @@
else
new Effect.Fade(els[i],{queue: {position: 'end', scope: 'command'}, duration: 0.3});
}
+ $("status").style.display="none";
+}
+function mass_delete() {
+ $("status").style.display="block";
+ var els = document.getElementsByTagName("INPUT");
+ var cnt = (els.length-1);
+ for(var i=cnt;i>0;i--) {
+ if(els[i].type === "checkbox" && els[i].name.indexOf("_")) {
+ if(els[i].checked) {
+ var nid = els[i].name.substr((els[i].name.indexOf("_")+1),els[i].name.length);
+ runEmailCommand("delete_msg",nid);
+ }
+ }
+ }
$("status").style.display="none";
}
function move_messages() {
More information about the vtigercrm-commits
mailing list