Skip to content

Commit

Permalink
include spin in button upload profile photo
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrysweel committed Jul 22, 2015
1 parent fe24db2 commit 7fa795f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG-0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
5 changes: 4 additions & 1 deletion Resources/views/User/edit_profile_photo.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
{{ form_rest(form) }}
<div class="form-group row">
<div class="col-sm-offset-10 col-sm-2">
<input id="send-file" style="display: none" name="register" type="submit" class="btn btn-lg pull-right btn-primary" value="{{ 'registration_profile.submit'|trans }}" />
<button id="send-file" name="register" type="submit" style="display: none" class="btn btn-lg pull-right btn-primary">
<i id="icon_register" class=""></i>
{{ 'registration_profile.submit'|trans }}
</button>
</div>
</div>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}',
Expand Down

0 comments on commit 7fa795f

Please sign in to comment.