diff --git a/web/skins/bootstrap/js/app.js b/web/skins/bootstrap/js/app.js index 2f09cb32f..c6719cf21 100644 --- a/web/skins/bootstrap/js/app.js +++ b/web/skins/bootstrap/js/app.js @@ -33,3 +33,13 @@ ZoneMinder.factory('Console', function($http) { }; }); +ZoneMinder.directive('angularHtmlBind', function($compile) { + return function(scope, elm, attrs) { + scope.$watch(attrs.angularHtmlBind, function(newValue, oldValue) { + if (newValue && newValue !== oldValue) { + elm.html(newValue); + $compile(elm.contents())(scope); + } + }); + }; +});