Commit 3c7aa8050d8a54a4d92dabf74f6644407d17a67d

Authored by Dylan Guedes
1 parent 66596e51

Removes use report in SISP hosts.

Signed-off-by: Dylan Guedes <djmgguedes@gmail.com>
Signed-off-by: ArthurJahn <stutrzbecher@gmail.com>
Showing 1 changed file with 11 additions and 1 deletions   Show diff stats
src/noosfero-spb/noosfero-spb-theme/theme.js
... ... @@ -52,14 +52,24 @@ SPBNoosferoTheme.OrganizationRatings = (function($) {
52 52 });
53 53 }
54 54  
  55 + function sisp_host() {
  56 + return window.location.host.indexOf("sisp") > -1;
  57 + }
  58 +
  59 + function remove_sisp_buttons() {
  60 + if(sisp_host()) {
  61 + $('.rate-this-organization').hide();
  62 + $('.make-report-block').hide();
  63 + }
  64 + }
55 65  
56 66 function initialize() {
57 67 set_use_report_content();
58 68 set_tooltip_content();
59 69 set_arrow_direction();
  70 + remove_sisp_buttons();
60 71 }
61 72  
62   -
63 73 return {
64 74 init: initialize
65 75 };
... ...