Skip to content

Commit

Permalink
Fix floating label
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryosuke Yokoe committed Feb 18, 2017
1 parent d085143 commit ad14658
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,13 @@ $.AdminBSB.input = {
$('body').on('click', '.form-float .form-line .form-label', function () {
$(this).parent().find('input').focus();
});

//Not blank form
$('.form-control').each(function() {
if ($(this).val() !== '') {
$(this).parent('.form-line').addClass('focused');
}
});
}
}
//==========================================================================================================================
Expand Down

0 comments on commit ad14658

Please sign in to comment.