frontend/app/assets/javascripts/gaku/frontend/syllabuses.js.coffee in gaku-0.1.1 vs frontend/app/assets/javascripts/gaku/frontend/syllabuses.js.coffee in gaku-0.2.0
- old
+ new
@@ -1,22 +1,8 @@
ready = ->
class SyllabusesController
edit: ->
- $('#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()
-
@app.syllabuses = new SyllabusesController
$(document).ready(ready)
$(document).on('page:load', ready)
\ No newline at end of file