diff --git a/app.coffee b/app.coffee index cfc6acc..85dade4 100644 --- a/app.coffee +++ b/app.coffee @@ -1,7 +1,6 @@ client = new WebTorrent debug = true - app = angular.module 'bTorrent', [], ['$compileProvider','$locationProvider', ($compileProvider, $locationProvider) -> $compileProvider.aHrefSanitizationWhitelist /^\s*(https?|magnet|blob|javascript):/ $locationProvider.html5Mode( @@ -55,7 +54,7 @@ app.controller 'bTorrentCtrl', ['$scope','$http','$log','$location', ($scope, $h return $scope.fromInput = -> - if !$scope.torrentInput == '' + if $scope.torrentInput.length > 0 $scope.client.processing = true dbg 'Adding ' + $scope.torrentInput $scope.client.add $scope.torrentInput, $scope.onTorrent diff --git a/index.jade b/index.jade index a1fac29..7c12140 100644 --- a/index.jade +++ b/index.jade @@ -57,7 +57,7 @@ html(ng-app='bTorrent', lang='en') | {{torrent.length | pbytes}} in a(href='#', onclick='return false;', ng-click='toggleTorrent(torrent)') {{torrent.files.length}} files td(ng-hide='client.done()') - | {{torrent.downloaded | pbytes}} + | {{torrent.downloaded | pbytes}} span.subInfo ({{torrent.pProgress}}%) br span.subInfo @ {{torrent.downloadSpeed() | pbytes}}/s @@ -83,7 +83,7 @@ html(ng-app='bTorrent', lang='en') .row .two.columns.center i.fa.fa-file - strong Files: + strong Files: .ten.columns.fix-height ul.no-margin li(ng-repeat='file in torrent.files')