diff options
Diffstat (limited to 'js/components/inputresize_directive.js')
-rw-r--r-- | js/components/inputresize_directive.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/js/components/inputresize_directive.js b/js/components/inputresize_directive.js deleted file mode 100644 index b180abfe..00000000 --- a/js/components/inputresize_directive.js +++ /dev/null @@ -1,15 +0,0 @@ -angular.module('contactsApp') -.directive('inputresize', function() { - return { - restrict: 'A', - link : function (scope, element) { - var elInput = element.val(); - element.bind('keydown keyup load focus', function() { - elInput = element.val(); - // If set to 0, the min-width css data is ignored - var length = elInput.length > 1 ? elInput.length : 1; - element.attr('size', length); - }); - } - }; -}); |