Move webtorrent inside a service
[oweals/peertube.git] / client / app / videos / video-add / video-add.component.ts
index eb10aedeb2bc41c11de77e1f85d66febb7daa19a..619a4f4d868ee330b9622a6e0103531768633d89 100644 (file)
@@ -1,3 +1,6 @@
+/// <reference path="../../../typings/globals/jquery/index.d.ts" />
+/// <reference path="../../../typings/globals/jquery.fileupload/index.d.ts" />
+
 import { Component, ElementRef, OnInit } from '@angular/core';
 import { Router } from '@angular/router-deprecated';
 
@@ -6,9 +9,6 @@ import { PROGRESSBAR_DIRECTIVES } from 'ng2-bootstrap/components/progressbar';
 
 import { AuthService, User } from '../../users/index';
 
-// TODO: import it with systemjs
-declare var jQuery: any;
-
 @Component({
   selector: 'my-videos-add',
   styleUrls: [ 'client/app/videos/video-add/video-add.component.css' ],
@@ -37,7 +37,7 @@ export class VideoAddComponent implements OnInit {
       dataType: 'json',
       singleFileUploads: true,
       multipart: true,
-      autoupload: false,
+      autoUpload: false,
 
       add: (e, data) => {
         this.form = data;