Skip to content

Commit

Permalink
removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
lars committed Jun 15, 2014
1 parent 18a9771 commit 4e39895
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/js/controllers/hubs.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ EiskaltApp.controller('HubCtrl', function ($scope, $interval, $localStorage, set
}

$scope.getFilelist = function (nick) {
EiskaltRPC.GetFileList($scope.hub.huburl, nick);
console.log('getFilelist', nick);
// close possible old opened filelist

// trigger filelist download
//EiskaltRPC.GetFileList($scope.hub.huburl, nick);
}
});

Expand All @@ -74,11 +78,14 @@ EiskaltApp.controller('UserCtrl', function ($scope, EiskaltRPC) {

$scope.downloadFilelist = function (nick) {
EiskaltRPC.GetFileList($scope.hub.huburl, nick).success(function(status) {
EiskaltApp.ShowOpenedLists().success(function(data) {
console.log(data);
});
if (status == 0) {
$scope.downloading = true;
} else {
alert('Download failed. Maybe still downloading or downloaded already?');
}
});
};
});
});

0 comments on commit 4e39895

Please sign in to comment.