             dtE = moment.tz @endField.val(), @inputDateFormat,
                     window.app.timezone
             # Model has non-inclusive end-date, but UI has inclusive end-date,
-            # which means a difference of one day.        
+            # which means a difference of one day.
             dtE.add 'day', 1
-            
+
             data.start = H.momentToDateString(dtS)
             data.end = H.momentToDateString(dtE)
 


        start = moment @startField.val(), @inputDateTimeFormat
        end = moment @endField.val(), @inputDateTimeFormat
        
        options =
            language: window.app.locale
            autoclose: true

        if not validModel
            @$('.alert').remove()
            @$('.control-group').removeClass('error')
            validationErrors = @model.validationError
            if validationErrors?
                @handleError error for error in validationErrors

    handleError: (error) =>
        switch error.field
