Skip to content
Snippets Groups Projects
Commit 9b811c66 authored by jaden's avatar jaden
Browse files

rm unneeded isolate scope & apply ani changes

parent 26b1abc3
No related branches found
No related tags found
1 merge request!223Reports overhaul
......@@ -28,8 +28,6 @@
angular.module('reportApp')
.directive("reportSave", ['GroupsService', 'ReportService', 'reportFactory', 'ErrorService', 'ExperimentsService', function(GroupsService, ReportService, reportFactory, ErrorService, ExperimentsService){
return {
scope: {
},
restrict: 'A',
link: function(scope, el){
......@@ -49,6 +47,7 @@ angular.module('reportApp')
lastEditedEl.classList.remove('lastEditedAnimating');
void lastEditedEl.offsetWidth;
lastEditedEl.classList.add('lastEditedAnimating');
scope.$apply();
})
.catch(e => {
ErrorService.logError(e, `Could not save the report.`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment