Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Commit

Permalink
#384 Refactored the pull request code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefferson Stachelski committed Jul 29, 2015
1 parent cdff9b3 commit 10d1f52
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web-ui/app/js/mixins/with_mail_edit_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -214,9 +214,7 @@ define(
label.removeClass(showClass);
$(this).removeClass(showClass);
}
}).on('keyup', function() {
$(this).trigger('checkval');
}).trigger('checkval');
});
};

this.after('initialize', function () {
Expand Down

0 comments on commit 10d1f52

Please sign in to comment.