Commit 8dbee1195bafac3f0da325ac79e85f05f4188aa5
Exists in
master
and in
29 other branches
Merge branch 'send_email_button_text_change' into 'master'
send_email button text change Replaces the text in the "send_email" button using javascript. Closes #461 See merge request !149
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); | ... | ... |