Commit 9cfdab13a8d045f3b50c494765513ae974b2e58c

Authored by Dylan Guedes
1 parent 8880af6d

Replace send_email texts for contact_admin texts. This approach is temporary, an…

…d evades the needing to merge text changes in noosfero core. #461

Signed-off-by: Dylan Guedes <djmgguedes@gmail.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>

Propose other way to change translation
Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
src/noosfero-spb/noosfero-spb-theme/theme.js
@@ -275,12 +275,17 @@ $(&#39;#link-buscar&#39;).click(function(e) { @@ -275,12 +275,17 @@ $(&#39;#link-buscar&#39;).click(function(e) {
275 $('<span id="breadcrumbs-you-are-here">Você está aqui:</span>').insertBefore($('.breadcrumbs-plugin_content-breadcrumbs-block .block-inner-2').children().first()); 275 $('<span id="breadcrumbs-you-are-here">Você está aqui:</span>').insertBefore($('.breadcrumbs-plugin_content-breadcrumbs-block .block-inner-2').children().first());
276 } 276 }
277 277
  278 + // temporary solution for the suspension_point in some buttons
278 function remove_suspension_points_in_buttons() { 279 function remove_suspension_points_in_buttons() {
279 $(".template-kind a span:contains('...')").each(function(index, element) { 280 $(".template-kind a span:contains('...')").each(function(index, element) {
280 element.innerHTML = element.innerHTML.replace(/(\...)/, ""); 281 element.innerHTML = element.innerHTML.replace(/(\...)/, "");
281 }); 282 });
282 } 283 }
283 284
  285 + // temporary solution for the text in send_email buttons
  286 + function replace_send_email_button_text() {
  287 + $('.action-profile-members .page-members-header .icon-menu-mail').html('Contatar administradores');
  288 + }
284 289
285 $(document).ready(function(){ 290 $(document).ready(function(){
286 add_tooltips(); 291 add_tooltips();
@@ -294,5 +299,6 @@ $(&#39;#link-buscar&#39;).click(function(e) { @@ -294,5 +299,6 @@ $(&#39;#link-buscar&#39;).click(function(e) {
294 set_use_report_content(); 299 set_use_report_content();
295 setEvents(); 300 setEvents();
296 remove_suspension_points_in_buttons(); 301 remove_suspension_points_in_buttons();
  302 + replace_send_email_button_text();
297 }); 303 });
298 })(jQuery); 304 })(jQuery);