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

    @idx_curr = index
    @loadContent(index)

  unlockLatest: ->
    # console.log "@idx_last: #{@idx_last}, @num_courses: #{@num_courses}"
    return unless @coursesAvailable()
    return unless User.current?

    # @toggleInterface()
    # @display(@idx_last)
    
    @idx_last = +@idx_last + 1
    User.current.setPreference 'curr_course_id', @idx_last
    console.log 'NEXT MINI-COURSE WILL BE: ', @idx_last

    # $(".arrow.right").hide()
    # rightArrow = @el.find('.arrow.right')
    # rightArrow.hide()

    # @course_el.fadeIn(@transitionTime)
    # @subject_el.fadeOut(@transitionTime)
    # @subject_el.toggleClass("hidden")
    # @course_el.toggleClass("visible")

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

    User.current.setPreference 'curr_course_id', 0 
    # User.current.setPreference 'supplemental_option', true
    @count = 0
    @idx_last = 0
    @idx_curr = 0

module.exports = MiniCourse
