             @selfclose()
         else
             @addButton.removeClass 'disabled'
+
 
     formatDateTime: (dtStr) ->
         splitted = dtStr.match /([0-9]{1,2}):([0-9]{2})\+?([0-9]*)/

PopoverView = require '../lib/popover_view'
EventModal = require 'views/event_modal'
ComboBox = require 'views/widgets/combobox'
Toggle = require 'views/toggle'
Event = require 'models/event'

module.exports = class EventPopOver extends PopoverView


            modal.render()
        else
            window.location.hash += "/#{@model.id}"

        event.preventDefault()
        @selfclose()


    onKeyUp: (event) ->
        if event.keyCode is 13 or event.which is 13 #ENTER
            # Forces the combobox to blur to save the calendar if it has changed
            @calendar.onBlur()
