diff --git a/src/noosfero-spb/noosfero-spb-theme/theme.js b/src/noosfero-spb/noosfero-spb-theme/theme.js index 30afbd6..4358d77 100644 --- a/src/noosfero-spb/noosfero-spb-theme/theme.js +++ b/src/noosfero-spb/noosfero-spb-theme/theme.js @@ -52,14 +52,24 @@ SPBNoosferoTheme.OrganizationRatings = (function($) { }); } + function sisp_host() { + return window.location.host.indexOf("sisp") > -1; + } + + function remove_sisp_buttons() { + if(sisp_host()) { + $('.rate-this-organization').hide(); + $('.make-report-block').hide(); + } + } function initialize() { set_use_report_content(); set_tooltip_content(); set_arrow_direction(); + remove_sisp_buttons(); } - return { init: initialize }; -- libgit2 0.21.2