Commit 626f081d1de13e73c16aa8c90dd154a25dc4cf68

Authored by Rodrigo Souto
1 parent 534b6af9

Adjusting abuse report ui

(ActionItem2093)
app/views/profile/report_abuse.html.erb
... ... @@ -6,8 +6,9 @@
6 6  
7 7 <p><%= recaptcha_tags :ajax => true, :display => {:theme => 'clean'} %> </p>
8 8  
9   - <%= submit_button(:ok, _('Report profile'), :style => 'margin-top: 10px; float: left; cursor: pointer;', :id => 'report-abuse-submit-button', :onclick => "jQuery('#form-submit-loading').show()") %>
10   - <div id="form-submit-loading" class="small-loading" style="width: 16px; height: 16px; margin-top: 13px; float: left; display: none;"></div>
  9 + <%= submit_button(:send, _('Report profile'), :style => 'float: left; cursor: pointer;', :id => 'report-abuse-submit-button', :onclick => "jQuery('#form-submit-loading').show()") %>
  10 + <%= button(:cancel, _('Cancel'), {}, :style => 'float: left; padding-top: 0px; padding-bottom: 0px;', :onclick => 'jQuery.colorbox.close(); return false;')%>
  11 + <div id="form-submit-loading" class="small-loading" style="width: 16px; height: 16px; margin-top: 3px; float: left; display: none;"></div>
11 12 <% end %>
12 13  
13 14 <script type="text/javascript">
... ...
public/javascripts/report-abuse.js
... ... @@ -3,7 +3,7 @@ jQuery(function($) {
3 3 if($(this).attr('href')){
4 4 $.fn.colorbox({
5 5 href: $(this).attr('href'),
6   - innerHeight: '310px',
  6 + innerHeight: '300px',
7 7 innerWidth: '445px'
8 8 });
9 9 }
... ...
public/stylesheets/application.css
... ... @@ -6197,3 +6197,9 @@ h1#agenda-title {
6197 6197 .comment_reply .recaptcha_image_cell {
6198 6198 background: transparent !important;
6199 6199 }
  6200 +
  6201 +/* Colorbox */
  6202 +
  6203 +#cboxClose {
  6204 + display: none !important;
  6205 +}
... ...