From bf6aa15512cc6d31be320204fbc3c115bfd11b1b Mon Sep 17 00:00:00 2001 From: Johann Pardanaud Date: Wed, 17 Feb 2016 18:35:16 +0100 Subject: Improve avatar cropping internals, based on suggestions made by @rspeicher on !2773 --- app/views/profiles/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/profiles') diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml index 6686c037b60..04f738c2759 100644 --- a/app/views/profiles/show.html.haml +++ b/app/views/profiles/show.html.haml @@ -88,7 +88,7 @@ %i.fa.fa-paperclip %span Choose File ...   - %span.file_name.js-avatar-filename{:'data-label' => 'File name...'} File name... + %span.file_name.js-avatar-filename File name... = f.file_field :avatar, class: "js-user-avatar-input hidden" = f.hidden_field :avatar_crop_x = f.hidden_field :avatar_crop_y @@ -107,7 +107,7 @@ .modal-dialog .modal-content .modal-header - %button.close{:type => "button", :'data-dismiss' => "modal"} + %button.close{type: 'button', data: {dismiss: 'modal'}} %span × %h4.modal-title -- cgit v1.2.1