diff options
Diffstat (limited to 'horizon/static/framework/util/tech-debt/image-file-on-change.directive.js')
-rw-r--r-- | horizon/static/framework/util/tech-debt/image-file-on-change.directive.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/static/framework/util/tech-debt/image-file-on-change.directive.js b/horizon/static/framework/util/tech-debt/image-file-on-change.directive.js index e6df46c0c..64c46cb51 100644 --- a/horizon/static/framework/util/tech-debt/image-file-on-change.directive.js +++ b/horizon/static/framework/util/tech-debt/image-file-on-change.directive.js @@ -29,7 +29,7 @@ return directive; function link($scope, element, attrs, ngModel) { - element.bind('change', function (event) { + element.on('change', function (event) { var files = event.target.files; var file = files[0]; ngModel.$setViewValue(file); |