   clickGrade: (phrase) =>
     if @gradingMode != 'sum' && !phrase.criterion.annotationsHaveGrades()
       this.addCommand(new SetSelectedPhraseCommand(phrase.criterion, phrase))
-      @saved = false
   
   
   clickPhrase: (phrase) =>

      this.addCommand(new SetSelectedPhraseCommand(phrase.criterion, undefined))
    
    page.createAnnotation(options)
    @saved = false
  
  dropPhraseToAnnotation: (receiverAnnotation, draggedAnnotation, event, ui) =>
    #console.log draggedAnnotation

      new_zoom = 0.25 if new_zoom < 0.25
      new_zoom = 2.0 if new_zoom > 2.0
      @zoom(new_zoom)
    
    unless @demo_mode
      $(window).bind 'beforeunload', =>
        return "You have unsaved changes. Leave anyway?" unless @saved
  
  createSubmissionPages: ->
    previousPage = undefined
