summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 0fbfb951..cb7ba822 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -81,6 +81,15 @@ angular.module('zmApp', [
})
+.directive('dynamicUrl', function () {
+ return {
+ restrict: 'A',
+ link: function postLink(scope, element, attr) {
+ element.attr('src', attr.dynamicUrlSrc);
+ }
+ };
+})
+
.directive('dannyPackery', ['$rootScope', function($rootScope) {
return {