Skip to content

Commit

Permalink
Return listings now display singular week if device has only been out…
Browse files Browse the repository at this point in the history
… for 1 week
  • Loading branch information
arc12012 committed Dec 3, 2016
1 parent b15348f commit bb3e07b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion html/javascript/return.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ function populateDeviceList(filter)
var weeks=Math.floor(days/7);
var months=Math.floor(weeks/4);
if(months>=2) htmlString+=months+" months";
else htmlString+= weeks+ " weeks";
else
{
htmlString+= weeks+ " week";
if(weeks!=1) htmlString+="s";
}
htmlString+="</div><div class=\"returnButtonContainer\"><button class=\"returnbutton\" id=\"button ";
htmlString+=(id);
htmlString+="\" type=\"button\">Return ";
Expand Down

0 comments on commit bb3e07b

Please sign in to comment.