Skip to content

Commit

Permalink
JS variales were leaking to global scope
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemp authored and michaeltwofish committed Nov 27, 2011
1 parent 81e8588 commit a456884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installer/script.js
Expand Up @@ -73,8 +73,8 @@ var installer = {
var installok = true; var installok = true;


// If admin passwords have been entered, check if they're the same // If admin passwords have been entered, check if they're the same
pass1 = $('#adminpass1'); var pass1 = $('#adminpass1');
pass2 = $('#adminpass2'); var pass2 = $('#adminpass2');


if ( pass1.val().length > 0 && pass2.val().length > 0 && pass1.val() == pass2.val() ) { if ( pass1.val().length > 0 && pass2.val().length > 0 && pass1.val() == pass2.val() ) {
pass1.parents('.inputfield').removeClass('invalid').addClass('valid'); pass1.parents('.inputfield').removeClass('invalid').addClass('valid');
Expand Down

0 comments on commit a456884

Please sign in to comment.