Fix zooming when cropping header
This commit is contained in:
parent
94433f4484
commit
b71466535d
|
@ -74,8 +74,8 @@
|
||||||
|
|
||||||
updateVars cropper.guillotine('getData'), 'drag'
|
updateVars cropper.guillotine('getData'), 'drag'
|
||||||
|
|
||||||
($ '#cropper-zoom-out').click -> cropper.guillotine 'zoomOut'
|
($ '#cropper-header-zoom-out').click -> cropper.guillotine 'zoomOut'
|
||||||
($ '#cropper-zoom-in').click -> cropper.guillotine 'zoomIn'
|
($ '#cropper-header-zoom-in').click -> cropper.guillotine 'zoomIn'
|
||||||
($ '#profile-header-crop-controls').slideDown()
|
($ '#profile-header-crop-controls').slideDown()
|
||||||
|
|
||||||
cropper.attr 'src', e.target.result
|
cropper.attr 'src', e.target.result
|
||||||
|
|
|
@ -37,9 +37,9 @@
|
||||||
%img#profile-header-cropper{src: current_user.profile_header.url(:web)}
|
%img#profile-header-cropper{src: current_user.profile_header.url(:web)}
|
||||||
.col-sm-2.col-md-4
|
.col-sm-2.col-md-4
|
||||||
.btn-group
|
.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
|
%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
|
%i.fa.fa-search-plus
|
||||||
|
|
||||||
= f.text_field :motivation_header, label: "Motivation header", placeholder: 'Ask me anything!'
|
= f.text_field :motivation_header, label: "Motivation header", placeholder: 'Ask me anything!'
|
||||||
|
|
Loading…
Reference in New Issue