     bindEventHandlers: ->
       @$input.bind 'fileuploadsend', (event, data) =>
         @$input.addClass 'uploading'
+        @$wrapper.addClass 'uploading' if @$wrapper?
         @$form.addClass  'uploading'
 
         @$input.prop 'disabled', true
         if @config.disableWith
           @$submit.each (index,input) =>
             $input = $(input)
-            $input.data 'old-val', $input.val()
+            $input.data 'old-val', $input.val() unless $input.data('old-val')?
           @$submit.val  @config.disableWith
           @$submit.prop 'disabled', true
 



    addFilesContainer: ->
      @$filesContainer = $('<div class="attachinary_container">')
      @$input.after @$filesContainer

    redraw: ->
      @$filesContainer.empty()

      @files = @options.files

      @$form = @$input.closest('form')
      @$submit = @$form.find(@options.submit_selector ? 'input[type=submit]')
      @$wrapper = @$input.closest(@options.wrapper_container_selector) if @options.wrapper_container_selector?

      @initFileUpload()
      @addFilesContainer()
