Commit 9cfdab13a8d045f3b50c494765513ae974b2e58c
1 parent
8880af6d
Exists in
master
and in
29 other branches
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 @@ $('#link-buscar').click(function(e) { |
| 275 | 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 | 279 | function remove_suspension_points_in_buttons() { |
| 279 | 280 | $(".template-kind a span:contains('...')").each(function(index, element) { |
| 280 | 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 | 290 | $(document).ready(function(){ |
| 286 | 291 | add_tooltips(); |
| ... | ... | @@ -294,5 +299,6 @@ $('#link-buscar').click(function(e) { |
| 294 | 299 | set_use_report_content(); |
| 295 | 300 | setEvents(); |
| 296 | 301 | remove_suspension_points_in_buttons(); |
| 302 | + replace_send_email_button_text(); | |
| 297 | 303 | }); |
| 298 | 304 | })(jQuery); | ... | ... |