summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-04-29 20:37:28 -0400
committerARC <arjunrc@gmail.com>2015-04-29 20:37:28 -0400
commiteabc4988d8627690a0a1111a9a163cbe03692bca (patch)
treef781e1cef5cf40bff0192a1a1015ca42f015a0b8 /www/js/app.js
parentcc75f665b426051fa0bab30167f78cf3aae5cf23 (diff)
fixed modals to make sure images load only when user taps on view button. No sense in wasting memory. Image override directives are being called correctly. Now I need to expriment with how to overwrite image frames when ZMS is still sending data to the client to avoid the blank screen issue
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index a65d46ba..908f09bf 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -7,9 +7,12 @@ angular.module('zmApp', [
.directive('img', function () {
return {
- restrict: 'E',
+ restrict: 'AE',
link: function (scope, element, attrs) {
console.log ("********** IMG DIRECTIVE ");
+
+ // if (!attr.ngSrc)
+ // element[0].src = 'img/demo.gif';
// show an image-missing image
// element.error(function () {