mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-27 22:35:22 +00:00
Monotone-Parent: d20b6efa6a8c415c1db8ca849c311e740a312646
Monotone-Revision: 5d08c3e624999be469da2fd6046209e122529287 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-11-06T22:34:42 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -333,6 +333,9 @@ function onToolbarWriteToSelectedContacts(event) {
|
||||
var rows = contactsList.getSelectedRowsId();
|
||||
var rowsWithEmail = 0;
|
||||
|
||||
if (rows.length == 0)
|
||||
return false;
|
||||
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
var emailCell = $(rows[i]).down('td', 1);
|
||||
if (emailCell.firstChild) { // .nodeValue is the contact email address
|
||||
@@ -341,7 +344,7 @@ function onToolbarWriteToSelectedContacts(event) {
|
||||
+ "/" + rows[i] + "/write");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (rowsWithEmail == 0) {
|
||||
window.alert(labels["The selected contact has no email address."]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user