Commit 8880af6d44cbe3149d02c0cfdba7787bd18492f0
Exists in
master
and in
34 other branches
Merge branch 'button_suspension_points_remove' into 'master'
Remove suspension points - closes #460 Alguns botões contém reticências. Se só fosse mudado o texto dos botões, a mudança ficaria divergente do noosfero/noosfero, então estamos mudando dinamicamente como solução temporária. See merge request !142
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
src/noosfero-spb/noosfero-spb-theme/theme.js
... | ... | @@ -275,6 +275,13 @@ $('#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 | + function remove_suspension_points_in_buttons() { | |
279 | + $(".template-kind a span:contains('...')").each(function(index, element) { | |
280 | + element.innerHTML = element.innerHTML.replace(/(\...)/, ""); | |
281 | + }); | |
282 | + } | |
283 | + | |
284 | + | |
278 | 285 | $(document).ready(function(){ |
279 | 286 | add_tooltips(); |
280 | 287 | add_popovers(); |
... | ... | @@ -286,5 +293,6 @@ $('#link-buscar').click(function(e) { |
286 | 293 | set_arrow_direction(); |
287 | 294 | set_use_report_content(); |
288 | 295 | setEvents(); |
296 | + remove_suspension_points_in_buttons(); | |
289 | 297 | }); |
290 | 298 | })(jQuery); | ... | ... |