Revision c4728006 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/dragfiles.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/dragfiles.js
51 51
        self.drop(e);
52 52
      });
53 53

  
54
      // folder specific events
55
      $(this.elem).find('.folder').on('dragover', function(e){
56
        $(this).addClass('draghover');
57
      });
58

  
59
      $(this.elem).find('.folder').on('dragleave', function(e){
60
        $(this).removeClass('draghover');
61
      });
62

  
63
      $(this.elem).find('.folder').on('drop', function(e){
64
         console.log($(this).data('path'), 'path');
65
      });
66

  
54 67
      $('input[type=file]').on('change',function (e) {
55 68
        window.test = e;
56 69
        self.addFiles( e.originalEvent.target.files );

Also available in: Unified diff