ONOS-2325 - GUI -- Rewrite / bug fix for table row flashing. Multi-rows act like a unit and row flashes when a single new element is added.
Change-Id: I7be876281c0c86b927366223fc87372ea21034ec
diff --git a/web/gui/src/main/webapp/app/directives.js b/web/gui/src/main/webapp/app/directives.js
index b3c34ab..0b4f495 100644
--- a/web/gui/src/main/webapp/app/directives.js
+++ b/web/gui/src/main/webapp/app/directives.js
@@ -15,7 +15,7 @@
*/
/*
- ONOS GUI -- Our own Angular directives defined here.
+ ONOS GUI -- General Purpose Angular directives defined here.
*/
(function () {
@@ -59,5 +59,14 @@
});
}
};
+ }])
+
+ .directive('ngRepeatComplete', [function () {
+ return function (scope) {
+ if (scope.$last) {
+ scope.$emit('ngRepeatComplete');
+ scope.$broadcast('ngRepeatComplete');
+ }
+ };
}]);
}());