[update] Ignore file on size or mime type
This commit is contained in:
@@ -68,8 +68,15 @@ application.controller(
|
||||
if( $scope.version )
|
||||
$scope.version.active = false;
|
||||
|
||||
$scope.version = file.versions[ file.versions.length - 1 ];
|
||||
$scope.version.active = true
|
||||
if( file.versions.length )
|
||||
{
|
||||
$scope.version = file.versions[ file.versions.length - 1 ];
|
||||
$scope.version.active = true
|
||||
}
|
||||
else
|
||||
{
|
||||
$scope.version = null;
|
||||
}
|
||||
};
|
||||
|
||||
$scope.version_click = function( version )
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -302,7 +302,7 @@ body.project
|
||||
bottom 0
|
||||
background #31344a
|
||||
|
||||
section.no-file
|
||||
section.big-centered-text
|
||||
position absolute
|
||||
top 0
|
||||
left 0
|
||||
@@ -505,4 +505,3 @@ body.project
|
||||
&.added
|
||||
border 1px solid #b0ea23
|
||||
background rgba(176, 234, 35, 0.1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user