Fix zooming when cropping header
This commit is contained in:
parent
94433f4484
commit
b71466535d
|
@ -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
|
||||
|
|
|
@ -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!'
|
||||
|
|
Loading…
Reference in New Issue