     $(classifier.el).on "click", ".sign-in", (e) => loginDialog.show() 
     $(classifier.el).on "click", ".sign-up", (e) => signupDialog.show() 
 
-
-
-
-
-
-
-
-
-
   onClickCourseYes: ->
     unless User.current is null
       User.current.setPreference 'course', 'yes'

      figure         = @content[index].material.figure
      figure_credits = @content[index].material.figure_credits

    # # DEBUG CODE
    # console.log 'title         : ', title
    # console.log 'text          : ', text
    # console.log 'figure        : ', figure
    # console.log 'figure_credits: ', figure_credits

    @course_el.find("#course-title").html title
    @course_el.find(".course-text").html text
    @course_el.find("#course-figure").attr 'src', figure
    @course_el.find(".course-figure-credits").html figure_credits








  hideCourse: ->
    @subject_el.fadeIn(@transitionTime)

      # console.log 'AWESOME. COURSES AVAILABLE!!!'
      return true

  launch: ->
    console.log "idx_curr: ", @idx_curr
    console.log "idx_last: ", @idx_last
    return unless @coursesAvailable()
    @display(@idx_last)
    @toggleInterface()
    @unlockNext()

  toggleInterface: ->
    return unless @coursesAvailable()
    return unless User.current?
    @course_el.fadeIn(@transitionTime)
