diff --git a/app/assets/javascripts/settings.coffee b/app/assets/javascripts/settings.coffee index 89fe7512..f3eb6c84 100644 --- a/app/assets/javascripts/settings.coffee +++ b/app/assets/javascripts/settings.coffee @@ -74,8 +74,8 @@ updateVars cropper.guillotine('getData'), 'drag' - ($ '#cropper-zoom-out').click -> cropper.guillotine 'zoomOut' - ($ '#cropper-zoom-in').click -> cropper.guillotine 'zoomIn' + ($ '#cropper-header-zoom-out').click -> cropper.guillotine 'zoomOut' + ($ '#cropper-header-zoom-in').click -> cropper.guillotine 'zoomIn' ($ '#profile-header-crop-controls').slideDown() cropper.attr 'src', e.target.result diff --git a/app/views/user/edit.html.haml b/app/views/user/edit.html.haml index 84c379af..66e537cb 100644 --- a/app/views/user/edit.html.haml +++ b/app/views/user/edit.html.haml @@ -37,9 +37,9 @@ %img#profile-header-cropper{src: current_user.profile_header.url(:web)} .col-sm-2.col-md-4 .btn-group - %button#cropper-zoom-out.btn.btn-inverse{type: :button} + %button#cropper-header-zoom-out.btn.btn-inverse{type: :button} %i.fa.fa-search-minus - %button#cropper-zoom-in.btn.btn-inverse{type: :button} + %button#cropper-header-zoom-in.btn.btn-inverse{type: :button} %i.fa.fa-search-plus = f.text_field :motivation_header, label: "Motivation header", placeholder: 'Ask me anything!'