         origin_index = $section.data('origin-index')
         $id = $section.parent().find("#test_paper_sections_attributes_#{origin_index}_id")
         $id.prop 'name', $id.prop('name').replace(/(sections_attributes\]\[)\d+\]/g, "$1#{index}]") if $id.length > 0
-      #$this1.val(index)
-      #$this1.html $this1.html().replace(/(section_questions_attributes\]\[)\d+(\])/g , "$1#{index}$2")
-      #$this1.find('.question_position').val(index)
-      #console.log $this1.find('.question_position')
-      #console.log index
 
 jQuery(document).on 'ready page:load', ->
   new NewTestPaper(jQuery('.form-test_paper'), {}) if jQuery('.form-test_paper').length > 0

      that.$modal_questions_selector.modal('show')

    @$el.on 'click', '.section_move_up', ->
      console.log 'section_move_up'
      $this = jQuery(this)
      $section = $this.parent().parent().parent()


class NewTestPaper
  constructor: (@$el, params) ->
    @_init()
  
  _init: ->
