Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
fix hidden login box in my account
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofBorbis committed Apr 24, 2015
1 parent 2eb6f69 commit e4f09f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* New: Product reports shows sold quantity.
* Improved: Reports page displays properly values.
* Fix: JS error in Checkout page.
* Fix: Hidden login box in my account page.
* 1.17.3 - 2015-04-20:
* Improved: Reports page.
* Fix: Scripts and compatibility with JRTO.
Expand Down
12 changes: 7 additions & 5 deletions assets/js/checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,13 @@ jQuery(function($) {
// ensure there is no duplicate #payment from themes
$('div#payment:not(:last)').remove();
// handle hiding and showing the login form
$('form.login').hide();
$('a.showlogin').click(function(e){
e.preventDefault();
$('form.login').slideToggle();
});
if($('a.showlogin').length> 0){
$('form.login').hide();
$('a.showlogin').click(function(e){
e.preventDefault();
$('form.login').slideToggle();
});
}

// handle hiding and showing the shipping fields
$('#shiptobilling-checkbox').change(function(){
Expand Down

0 comments on commit e4f09f4

Please sign in to comment.