Skip to content

Commit

Permalink
Linting...
Browse files Browse the repository at this point in the history
  • Loading branch information
psychowood committed Jan 20, 2015
1 parent 153984e commit 5d029d4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion app/scripts/controllers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
$scope.addTorrentFilesOrUrl = function(urlOrFiles) {
var add = function(dir,subpath) {
if (typeof urlOrFiles === 'string') {
var ts = uTorrentService.addTorrentUrl(urlOrFiles,dir,subpath).then(function() {
uTorrentService.addTorrentUrl(urlOrFiles,dir,subpath).then(function() {
toastr.info('Torrent added succesfully',null,{timeOut: 1000});
$scope.newtorrent = '';
});
Expand Down Expand Up @@ -527,6 +527,26 @@
}
};

$scope.showSearch = function() {
var modalInstance = $modal.open({
templateUrl: 'views/yts-movies.html',
controller: 'YtsMoviesCtrl',
windowClass: 'modal-search',
backdrop: true,
resolve: {
addTorrent: function () {
return $scope.addTorrent;
}
}
});

modalInstance.result.then(function () {

}, function () {
$scope.lastTorrentDetails = null;
});
};

$scope.showDetails = function(item) {
$scope.lastTorrentDetails = item;
updateTorrentDetails(item);
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/services/utorrentservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ Torrent.prototype.formatBytes = function(bytes) {
url: data.url + '?token=' + data.token + '&action=add-file',
method: 'POST',
data: {
download_dir: dir,
'download_dir': dir,
path: path
},
file: file, // single file or a list of files. list is only for html5
Expand Down

0 comments on commit 5d029d4

Please sign in to comment.