[update] Add differences toggle

This commit is contained in:
brunosimon
2016-08-15 23:38:19 +02:00
parent 5ac57d4c4f
commit f248558f60
3 changed files with 24 additions and 7 deletions
+11 -1
View File
@@ -29,7 +29,12 @@ application.controller(
$scope.always_last_version = !$scope.always_last_version;
};
$scope.mark_all_as_read = function()
$scope.show_differences_toggle_click = function()
{
$scope.show_differences = !$scope.show_differences;
};
$scope.mark_all_as_read_click = function()
{
// Each file
for( var _file_key in project.files )
@@ -74,6 +79,8 @@ application.controller(
version.active = true;
$scope.version = version;
$scope.file.notif = 0;
};
$scope.init = function( project_slug )
@@ -103,6 +110,8 @@ application.controller(
$scope.version = data.version;
$scope.version.active = true;
$scope.file.notif = 0;
} );
}
}
@@ -111,6 +120,7 @@ application.controller(
$scope.project = project;
$scope.file = null;
$scope.always_last_version = true;
$scope.show_differences = true;
$scope.version = null;
}
]