Worked on user view appearance

This commit is contained in:
Marcin Kurczewski
2014-09-07 09:57:01 +02:00
parent 3ec1b94ee7
commit f5606c4169
21 changed files with 279 additions and 51 deletions

View File

@ -13,26 +13,20 @@ App.Controls.FileDropper = function(
$fileInput.attr('multiple', allowMultiple);
$fileInput.hide();
$fileInput.change(function(e)
{
$fileInput.change(function(e) {
addFiles(this.files);
});
$dropDiv.on('dragenter', function(e)
{
$dropDiv.on('dragenter', function(e) {
$dropDiv.addClass('active');
}).on('dragleave', function(e)
{
}).on('dragleave', function(e) {
$dropDiv.removeClass('active');
}).on('dragover', function(e)
{
}).on('dragover', function(e) {
e.preventDefault();
}).on('drop', function(e)
{
}).on('drop', function(e) {
e.preventDefault();
addFiles(e.originalEvent.dataTransfer.files);
}).on('click', function(e)
{
}).on('click', function(e) {
$fileInput.show().focus().trigger('click').hide();
$dropDiv.addClass('active');
});