Make sure there are attachments to register them for drag

This commit is contained in:
Hadi Nategh 2014-08-21 15:45:31 +00:00
parent 98d5c4ff51
commit 66e5004591

View File

@ -992,6 +992,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] || {};