diff --git a/app/views/profile/report_abuse.html.erb b/app/views/profile/report_abuse.html.erb index b4bccef..f25a3a4 100644 --- a/app/views/profile/report_abuse.html.erb +++ b/app/views/profile/report_abuse.html.erb @@ -9,7 +9,7 @@ <% end %> <%= submit_button(:send, _('Report profile'), :style => 'float: left; cursor: pointer;', :id => 'report-abuse-submit-button', :onclick => "jQuery('#form-submit-loading').show()") %> - <%= button(:cancel, _('Cancel'), {}, :style => 'float: left; padding-top: 0px; padding-bottom: 0px;', :onclick => 'jQuery.colorbox.close(); return false;')%> + <%= button(:cancel, _('Cancel'), {}, :style => 'float: left; padding-top: 0px; padding-bottom: 0px;', :onclick => 'noosfero.modal.close(); return false;')%> <% end %> @@ -30,7 +30,7 @@ success: function(data, status, ajax){ if ( !data.ok ) display_notice(data.error.message); else { - $.colorbox.close(); + noosfero.modal.close(); display_notice(data.message); window.location.reload(); } diff --git a/public/javascripts/report-abuse.js b/public/javascripts/report-abuse.js index 611b525..dcd25b8 100644 --- a/public/javascripts/report-abuse.js +++ b/public/javascripts/report-abuse.js @@ -1,8 +1,11 @@ jQuery(function($) { $('.report-abuse-action').live('click', function() { - if($(this).attr('href')) - $.colorbox({href: $(this).attr('href')}); - + if($(this).attr('href')){ + noosfero.modal.inline($(this).attr('href'), { + innerHeight: '300px', + innerWidth: '445px' + }); + } return false; }); -- libgit2 0.21.2