From 7fa795f65c30b42600d82bfefa8658b602554581 Mon Sep 17 00:00:00 2001 From: Chrysweel Date: Wed, 22 Jul 2015 14:58:30 +0200 Subject: [PATCH] include spin in button upload profile photo --- CHANGELOG-0.1.md | 5 +++-- Resources/views/User/edit_profile_photo.html.twig | 5 ++++- .../views/User/show_hide_button_upload_photo_js.html.twig | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG-0.1.md b/CHANGELOG-0.1.md index 1e45e9d..7c75eb4 100644 --- a/CHANGELOG-0.1.md +++ b/CHANGELOG-0.1.md @@ -90,7 +90,7 @@ To get the diff between two versions, go to https://github.com/antwebes/ChateaCl * improve_upload_photo * update version ChateaClientLib v0.1.3 -* 0.1.20(2015-07-21) +* 0.1.20(2015-07-22) * change url resetear-contraseƱa -> resetear-contrasena * refix desing page profile and edit profile photo * send events to analytics in form register @@ -99,4 +99,5 @@ To get the diff between two versions, go to https://github.com/antwebes/ChateaCl * show error customize when user register channel without validate * In register profile get id Of user session * externalize to template twig, js that manage show/hide button photo profile upload, and this template use prettyBundle - + * hotfix with show visit, check if is array + * include spin in button upload photo profile \ No newline at end of file diff --git a/Resources/views/User/edit_profile_photo.html.twig b/Resources/views/User/edit_profile_photo.html.twig index dba933d..10c61fb 100644 --- a/Resources/views/User/edit_profile_photo.html.twig +++ b/Resources/views/User/edit_profile_photo.html.twig @@ -29,7 +29,10 @@ {{ form_rest(form) }}
- +
diff --git a/Resources/views/User/show_hide_button_upload_photo_js.html.twig b/Resources/views/User/show_hide_button_upload_photo_js.html.twig index 7f22ed0..d224251 100644 --- a/Resources/views/User/show_hide_button_upload_photo_js.html.twig +++ b/Resources/views/User/show_hide_button_upload_photo_js.html.twig @@ -73,7 +73,8 @@ if(sendFile){ var formData = new FormData( this ); - $('#send-file').hide(); + $("#icon_register").addClass('icon-spinner icon-spin'); + $("#send-file").prop('disabled', true); $.ajax( { url: '{{ api_endpoint }}/api/users/{{ user.id }}/photo?access_token={{ access_token }}',