     $(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)

    @idx_curr = index
    @loadContent(index)

  unlockNext: ->
    return unless @coursesAvailable()
    return unless User.current?
    @idx_curr = @idx_last - 1
    @idx_last = @idx_last + 1
    User.current.setPreference 'curr_course_id', @idx_last
    console.log 'NEXT MINI-COURSE WILL BE: ', @idx_last

  loadContent: (index) ->
    if typeof index is undefined
