Make sure there are attachments to register them for drag

This commit is contained in:
Hadi Nategh 2014-07-16 11:10:25 +00:00
parent 650be336eb
commit 96dfb6d04f

View File

@ -929,6 +929,7 @@ app.classes.mail = AppJS.extend(
{
// Put required info in global store
var data = {};
if (!attachments) return;
for (var i = 0; i < attachments.length; i++)
{
var data = attachments[i] || {};