Skip to content

Commit

Permalink
work on #29: only display altert when max coords >1000
Browse files Browse the repository at this point in the history
  • Loading branch information
saerdnaer committed Aug 27, 2018
1 parent a3f4b59 commit 18f4afa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MYR_rails/app/assets/javascripts/Real_time/real_time.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ function choosetMission(){
if (e=="select_mission"){
alert("Please choose a correct mission!!!")
}else{
alert("Loading up to "+getMaxCoords()+" coordinates associated to this mission. This can take several seconds.")
if (getMaxCoords() > 1000){
alert("Loading up to "+getMaxCoords()+" coordinates associated to this mission. This can take several seconds.")
}
saveCurrentMission(e)
loadMissionBuoys();
displayMissionsBuoys();
Expand Down

0 comments on commit 18f4afa

Please sign in to comment.