                   url: cropper.jcropper_url
                   data:
                     image_data: cropper
+                  success: ->
+                    submitButton.value = previousValue
+                    submitButton.disabled = false
                   error: ->
                     alert('There was an error while cropping the image')
-                  $(@).dialog('close')                
+                  $(@).dialog('close')
             }
             {
               text: active_admin_jcrop.buttons_text.cancel

            {
              text: active_admin_jcrop.buttons_text.save_cropped_image
              click: ->
                text: 'aews'
                cropper = active_admin_jcrop.cropper
                $.ajax

          jcropper_url: image.data('jcropperUrl')

        $(content).appendTo('body').dialog
          width: content.width()
          height: content.height() + 100
          modal: true
          position: {
