PairDrop/app/elements/file-sharing/file-selection-behavior.html
2015-12-23 13:57:13 +01:00

19 lines
460 B
HTML

<script>
'use strict';
window.Chat = window.Chat || {};
Chat.FileSelectionBehavior = {
notifyFilesSelection: function(files) {
if (!files) {
console.log('no files selected...');
return;
}
for (var i = 0; i < files.length; i++) {
var file = files[i];
this.fire('file-selected', {
file: file,
name: file.name
});
}
}
};
</script>