   
   valueBinding: 'Weathermaps.maps.value'
   optionsBinding: 'Weathermaps.maps.options'
-  
-  title: (->
-    value = @get 'value'
-    if value then value else 'Map name'
-  ).property('value')
-  
-  select: (e) ->
-    $(e.target).parents('.open').removeClass('open')
-    @set 'value', e.context
-  
+ 
 }
 
-Weathermaps.DateListView = Ember.View.extend {
+Weathermaps.DateListView = MainMenuView.extend {
   templateName: 'datelist'
   groupBinding: 'Weathermaps.groups.value'
   mapBinding:   'Weathermaps.maps.value'

  
  valueBinding: 'Weathermaps.dates.value'
  optionsBinding: 'Weathermaps.dates.options'
  
  title: (->
    value = @get 'value'
    if value then value else 'Date'
  ).property('value')
  
  select: (e) ->
    $(e.target).parents('.open').removeClass('open')
    @set 'value', e.context
  
}

Weathermaps.TimeListView = Ember.View.extend {
  templateName: 'datelist'
  groupBinding: 'Weathermaps.groups.value'
  mapBinding:   'Weathermaps.maps.value'

Views
###

MainMenuView = Ember.View.extend {
  
  title: (->
    value = @get 'value'
