Sha256: 7f2c1eb97dcb339a1e206fd1193be349d75fefd1f6f374d2db13403cdb0b9e2f

Contents?: true

Size: 823 Bytes

Versions: 6

Compression:

Stored size: 823 Bytes

Contents

ready = ->

  class SyllabusesController
    init: ->
      $('#syllabus-exams').on "click", '#new-syllabus-exam-link', (event) ->
        event.preventDefault()
        #$(@).hide()
        $('#new-existing-exam').slideUp ->
          #$('#new-syllabus-exam').slide()
          $('#new-existing-exam-link').show()

      $('#syllabus-exams').on "click", '#new-existing-exam-link', (event) ->
        event.preventDefault()
        $(@).hide()
        $('#new-syllabus-exam').slideUp ->
          $('#new-existing-exam').slide()
          $('#new-syllabus-exam-link').show()

      $('#new-syllabus-assignment').on 'click', (event) ->
        event.preventDefault()
        $('#new-syllabus-assignment-form').slide()

  @app.syllabuses = new SyllabusesController

$(document).ready(ready)
$(document).on('page:load', ready)

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku_core-0.0.3 app/assets/javascripts/gaku/syllabuses.js.coffee
gaku-0.0.3 core/app/assets/javascripts/gaku/syllabuses.js.coffee
gaku-0.0.2 core/app/assets/javascripts/gaku/syllabuses.js.coffee
gaku_core-0.0.2 app/assets/javascripts/gaku/syllabuses.js.coffee
gaku-0.0.1 core/app/assets/javascripts/gaku/syllabuses.js.coffee
gaku_core-0.0.1 app/assets/javascripts/gaku/syllabuses.js.coffee