[refs #228] fix checking remember me button
This commit is contained in:
parent
0c194f5b50
commit
dab45f9afe
|
@ -20,4 +20,16 @@ $(document).ready(function() {
|
||||||
$(this).addClass('registartion-input-no-focus').removeClass('registartion-input-focus');
|
$(this).addClass('registartion-input-no-focus').removeClass('registartion-input-focus');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#niceCheckbox1').click(function() {
|
||||||
|
var el = $(this),
|
||||||
|
input = el.find('input[type="checkbox"]');
|
||||||
|
if(input.attr("checked")) {
|
||||||
|
el.css('backgroundPosition', '0 0');
|
||||||
|
input.removeAttr('checked');
|
||||||
|
} else {
|
||||||
|
el.css('backgroundPosition', '0 -18px');
|
||||||
|
input.attr('checked', true);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
.registration
|
.registration
|
||||||
.remember
|
.remember
|
||||||
.check
|
.check
|
||||||
%span#niceCheckbox1.niceCheck{:onclick => "changeCheck(this)"}
|
%span#niceCheckbox1.niceCheck
|
||||||
= f.check_box :remember_me
|
= f.check_box :remember_me
|
||||||
.text=t('devise.sessions.remember_me')
|
.text=t('devise.sessions.remember_me')
|
||||||
.in=f.submit t('layout.devise.shared_links.sign_in'), :class => 'button', :id => 'btnLogin'
|
.in=f.submit t('layout.devise.shared_links.sign_in'), :class => 'button', :id => 'btnLogin'
|
||||||
|
|
Loading…
Reference in New Issue