Skip to content

Commit

Permalink
adding in cutoff check
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanFriday committed Jan 14, 2016
1 parent 1e04859 commit c305186
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/membership/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,12 @@ function checkBlocking(){
}
}
function renew_membership_form(){

var date = new Date().getFullYear()+"/"+ (new Date().getFullYear()+1);
if(new Date().getMonth() >= 4){
var date = new Date().getFullYear()+"/"+ (new Date().getFullYear()+1);
}else{
var date = (new Date().getFullYear()-1) + "/"+ new Date().getFullYear();
}

var exists = false;
$('#membership_year option').each(function(){
console.log(this.value + " ?=" +date);
Expand Down

0 comments on commit c305186

Please sign in to comment.