0

if there is only one world, shouldnt show the world selector

This commit is contained in:
Lucas Hereld
2012-02-23 09:10:17 -08:00
parent ae820079d1
commit 4654595238

View File

@@ -36,6 +36,7 @@ overviewer.views.WorldView = Backbone.View.extend({
overviewer.views.WorldSelectorView = Backbone.View.extend({
initialize: function() {
if(overviewer.collections.worldViews.length > 1) {
// a div will have already been created for us, we just
// need to register it with the google maps control
var selectBox = document.createElement('select');
@@ -50,6 +51,7 @@ overviewer.views.WorldSelectorView = Backbone.View.extend({
this.el.appendChild(selectBox);
overviewer.map.controls[google.maps.ControlPosition.TOP_LEFT].push(this.el);
}
},
events: {
"change select": "changeWorld"