From 9b811c665ae1f70c1064dcfa5c404aa44076418a Mon Sep 17 00:00:00 2001 From: jaden <noreply@example.com> Date: Mon, 12 Jun 2017 16:38:37 +0200 Subject: [PATCH] rm unneeded isolate scope & apply ani changes --- beat/web/reports/static/reports/app/directives/save.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beat/web/reports/static/reports/app/directives/save.js b/beat/web/reports/static/reports/app/directives/save.js index 77c48e8bb..60d7c576b 100644 --- a/beat/web/reports/static/reports/app/directives/save.js +++ b/beat/web/reports/static/reports/app/directives/save.js @@ -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.`); -- GitLab