From 6668174852a019a6bb9f38c2d8d1508a3ca1c911 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Sat, 29 Nov 2014 13:03:09 +0100 Subject: [PATCH] Use wo-click-file-input directive for attachment input as well --- src/js/controller/app/write.js | 9 --------- src/tpl/write.html | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/js/controller/app/write.js b/src/js/controller/app/write.js index f61b5d5..d366b12 100644 --- a/src/js/controller/app/write.js +++ b/src/js/controller/app/write.js @@ -491,13 +491,4 @@ ngModule.directive('attachmentInput', function() { }; }); -ngModule.directive('attachmentBtn', function() { - return function(scope, elm) { - elm.on('click touchstart', function(e) { - e.preventDefault(); - document.querySelector('#attachment-input').click(); - }); - }; -}); - module.exports = WriteCtrl; \ No newline at end of file diff --git a/src/tpl/write.html b/src/tpl/write.html index dad691c..77e10ca 100644 --- a/src/tpl/write.html +++ b/src/tpl/write.html @@ -48,7 +48,7 @@
-