             event.preventDefault()
             $('#route-details').toggleClass('settings-open')
             $('.bootstrap-datetimepicker-widget').hide()
+            $('#route-details').trigger "shown"
 
     class TransportModeControlsView extends base.SMItemView
         template: 'transport-mode-controls'

            options.templates.empty = (ctx) -> jade.template 'typeahead-no-results', ctx
            @$searchEl.typeahead null, [options]

            selectAddress = (event, match) =>
                @commit = true
                switch $(event.currentTarget).attr 'data-endpoint'

                $inputEl: @$searchEl
                selectionCallback: selectAddress

            # Focus on search-elem when #route-details has been opened
            $('#route-details').on "shown", =>
                @$searchEl.attr('tabindex', -1).focus()

        _locationNameAndLocking: (object) ->
            name: @model.getEndpointName object
