admin/app/assets/javascripts/gaku/admin/admin.coffee in gaku-0.1.1 vs admin/app/assets/javascripts/gaku/admin/admin.coffee in gaku-0.2.0
- old
+ new
@@ -15,30 +15,30 @@
nameElem = $(@)
valueElem = nameElem.closest('.row')
.find('.dynamicAttributeValue')
value = nameElem.val()
- valueElem.attr 'id', "grading_method_arguments_#{value}"
- valueElem.attr 'name', "grading_method[arguments][#{value}]"
- valueElem.attr 'placeholder', "value for #{value}"
+ valueElem.attr 'id', "grading_method_criteria_#{value}"
+ valueElem.attr 'name', "grading_method[criteria][#{value}]"
- $(document).on 'click', '.remove-argument-row', (e)->
+ $(document).on 'click', '.remove-criteria-row', (e)->
e.preventDefault()
if confirm('Are you sure?')
$(@).closest('.row').html ''
- $(document).on 'click', '.add-argument-row', (e)->
+ $(document).on 'click', '.add-criteria-row', (e)->
e.preventDefault()
contents = "<div class='row'> #{$('.attribute-template').html()} </div>"
$(@).before(contents);
edit: ->
self.admin.country_dropdown()
+ self.admin.upload_picture_ajax()
edit_master: ->
- self.admin.upload_picture()
+ self.admin.upload_picture_ajax()
new: ->
self.admin.country_dropdown()
school_details: ->