Handle file delation + Handle file activation file + Activate last version on file activation

This commit is contained in:
brunosimon
2016-08-12 01:29:23 +02:00
parent a73a484d2a
commit 9ce3261a96
4 changed files with 65 additions and 42 deletions
@@ -25,14 +25,12 @@ application.controller(
$scope.file_click = function( file )
{
console.log('file click');
// project.each_file( function( file )
// {
// file.active = false;
// } );
file = file.data;
file.notif = 0;
// file.active = true;
// $scope.file = file;
$scope.file = file;
$scope.version = file.versions[ file.versions.length - 1 ];
};
$scope.version_click = function( version )