             {
               text: active_admin_jcrop.buttons_text.save_cropped_image
               click: ->
+                submitButton = $('input[type="submit"]')[0]
+                submitButton.disabled = true
+                previousValue = submitButton.value
+                submitButton.value = 'Cropping image...'
                 text: 'aews'
                 cropper = active_admin_jcrop.cropper
                 $.ajax

      $('.crop_modal_open').click ->
        content = $(this).parent().find('.crop_modal_content').clone()
        image = content.find('img.cropping_image')
        active_admin_jcrop.buttons_text = 
          save_cropped_image: image.data('translateSaveCroppedImage')
          cancel: image.data('translateCancel')
        active_admin_jcrop.cropper =

                  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')
            }
            {
              text: active_admin_jcrop.buttons_text.cancel
