(^300) ❘ CHAPTER 11 HTML5 DRAG AND DROP
}
}
);
}
});
dragAndDrop = {
path : null,
files : [],
openProgressDialogue : function(files, path)
{
this.path = path;
$('div#finderDragAndDropDialogue')
.fadeIn('fast');
this.files = [];
$(files).each(
function(key, file)
{
dragAndDrop.addFileToQueue(file);
}
);
if (this.files.length)
{
this.upload();
}
else
{
this.closeProgressDialogue();
}
},
closeProgressDialogue : function()
{
// Uncomment this section to automatically close the
// dialogue after upload
//$('div#finderDragAndDropDialogue')
// .fadeOut('fast');
//$('div#finderDragAndDropDialogue tbody tr')
// .not('tr.finderDragAndDropDialogueTemplate')
// .remove();
},
addFileToQueue : function(file)
{
if (!file.name && file.fileName)
http://www.it-ebooks.info
elliott
(Elliott)
#1