diff options
author | Jefferson Stachelski <jeffhsta@riseup.net> | 2015-07-29 17:25:06 -0300 |
---|---|---|
committer | Jefferson Stachelski <jeffhsta@riseup.net> | 2015-07-29 17:25:06 -0300 |
commit | 10d1f5203517ae33535c6cdb8c2e0fe7cebebea8 (patch) | |
tree | ada7ea3d81d0f5785dfafd495fa5aecc274cba23 /web-ui/app/js | |
parent | cdff9b31e43f916c46a0ac4b5105e0e771c0e8fb (diff) |
#384 Refactored the pull request code
Diffstat (limited to 'web-ui/app/js')
-rw-r--r-- | web-ui/app/js/mixins/with_mail_edit_base.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web-ui/app/js/mixins/with_mail_edit_base.js b/web-ui/app/js/mixins/with_mail_edit_base.js index 3a7b14b5..2434df92 100644 --- a/web-ui/app/js/mixins/with_mail_edit_base.js +++ b/web-ui/app/js/mixins/with_mail_edit_base.js @@ -205,7 +205,7 @@ define( this.enableFloatlabel = function(element) { var showClass = 'showfloatlabel'; - $(element).bind('checkval', function() { + $(element).bind('keyup', function() { var label = $(this).prev('label'); if (this.value !== '') { label.addClass(showClass); @@ -214,9 +214,7 @@ define( label.removeClass(showClass); $(this).removeClass(showClass); } - }).on('keyup', function() { - $(this).trigger('checkval'); - }).trigger('checkval'); + }); }; this.after('initialize', function () { |