Skip to content

Commit

Permalink
Fixes #48 (Waehrend der Anzeige des Kamerabildes wird der Automatikmo…
Browse files Browse the repository at this point in the history
…dus nicht unterbrochen).
  • Loading branch information
sebers committed Jan 27, 2012
1 parent 6a66835 commit 106dd4e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,10 @@ function refreshMarker(url) {
});
});

checkIfPassatIsPassed();
if (!checkIfPassatIsPassed()){
showArea(currentArea);
}

showArea(currentArea);
});
}

Expand All @@ -348,18 +349,23 @@ function checkIfPassatIsPassed() {
});

if ( !vesselInBounds || 'undefined'==vesselInBounds )
return;
return false;

if ($.inArray(vesselInBounds.vessel.name,shownVessels) == "-1"){
shownVessels.push(vesselInBounds.vessel.name);
showCamOrImage(vesselInBounds);
return true;
}
return false;

}

function showCamOrImage(ship){

var restart = function(){ cycleAreas(currentArea); };
var restart = function(){
cycleAreas(currentArea);
};

// stop cycling
$("#on_off").stopTime("cycling");

Expand Down

0 comments on commit 106dd4e

Please sign in to comment.