summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mixins
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/mixins')
-rw-r--r--web-ui/app/js/mixins/with_mail_edit_base.js6
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 () {