[Vtigercrm-commits] [vtiger-commits] r6575 - in /vtigercrm/trunk: Smarty/templates/Webmails.tpl modules/Webmails/webmails.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sun May 28 00:10:25 EDT 2006
Author: mmbrich
Date: Sat May 27 22:10:24 2006
New Revision: 6575
Log:
re-align the mailbox dropdown and add a confirmation to mass_delete()
Modified:
vtigercrm/trunk/Smarty/templates/Webmails.tpl
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 22:10:24 2006
@@ -104,7 +104,7 @@
<tr>
<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}
+ <input type="button" name="Button2" value=" {$MOD.LBL_MOVE_TO} " class="classWebBtn" onclick="move_messages();"/> {$FOLDER_SELECT}
</td>
{if $DEGRADED_SERVICE eq 'false'}
<td width="75%" align="right">
Modified: vtigercrm/trunk/modules/Webmails/webmails.js
==============================================================================
--- vtigercrm/trunk/modules/Webmails/webmails.js (original)
+++ vtigercrm/trunk/modules/Webmails/webmails.js Sat May 27 22:10:24 2006
@@ -226,18 +226,21 @@
$("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);
+ var confirm = "Are you sure you want to delete these messages?";
+ if(confirm) {
+ $("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";
+ $("status").style.display="none";
}
function move_messages() {
$("status").style.display="block";
More information about the vtigercrm-commits
mailing list