Skip to content

Commit 18f4afa

Browse files
committed
work on #29: only display altert when max coords >1000
1 parent a3f4b59 commit 18f4afa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MYR_rails/app/assets/javascripts/Real_time/real_time.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ function choosetMission(){
3737
if (e=="select_mission"){
3838
alert("Please choose a correct mission!!!")
3939
}else{
40-
alert("Loading up to "+getMaxCoords()+" coordinates associated to this mission. This can take several seconds.")
40+
if (getMaxCoords() > 1000){
41+
alert("Loading up to "+getMaxCoords()+" coordinates associated to this mission. This can take several seconds.")
42+
}
4143
saveCurrentMission(e)
4244
loadMissionBuoys();
4345
displayMissionsBuoys();

0 commit comments

Comments
 (0)