Permalink
Browse files

rm debugging code

  • Loading branch information...
1 parent b0be062 commit e133cca5e5c404f5d1b5a01dbe802110e5fad7b7 David Emory committed May 22, 2013
@@ -71,14 +71,12 @@ otp.core.Map = otp.Class({
if(!otp.config.initLatLng) {
- console.log("no initLL, reading metadata");
var url = otp.config.hostname + '/opentripplanner-api-webapp/ws/metadata';
$.ajax(url, {
data: { routerId : otp.config.routerId },
dataType: 'jsonp',
success: function(data) {
- console.log(data);
this_.lmap.fitBounds([
[data.lowerLeftLatitude, data.lowerLeftLongitude],
[data.upperRightLatitude, data.upperRightLongitude]
@@ -208,7 +208,6 @@ otp.core.Webapp = otp.Class({
var selector = $('<select id="otp_moduleSelector"></select>').appendTo('#branding');
for(i in this.modules) {
var module = this.modules[i];
- console.log(module);
var option = $('<option'+(module == this_.activeModule ? ' selected' : '')+'>'+module.moduleName+'</option>').appendTo(selector);
}
selector.change(function() {
@@ -233,7 +232,7 @@ otp.core.Webapp = otp.Class({
},
setActiveModule : function(module) {
- console.log("set active module: "+module.moduleName);
+ //console.log("set active module: "+module.moduleName);
if(this.activeModule != null) {
this.activeModule.deselected();
@@ -372,7 +372,6 @@ otp.widgets.tripoptions.ModeSelector =
var container = $("#"+this.id+'-widgets');
container.empty();
var mode = _.keys(this.modes)[document.getElementById(this.id).selectedIndex];
- console.log("refreshing widgets for mode: "+mode);
for(var i = 0; i < this.modeControls.length; i++) {
var control = this.modeControls[i];
if(control.isApplicableForMode(mode)) {

0 comments on commit e133cca

Please sign in to comment.