From 509d02d6eed69191ada0c716bb6d058ad772d57e Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 24 Sep 2010 18:42:42 -0300 Subject: [PATCH] Fixing "link to this page" feature. --- app/views/shared/noosfero_layout_features.rhtml | 8 -------- public/javascripts/application.js | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/shared/noosfero_layout_features.rhtml b/app/views/shared/noosfero_layout_features.rhtml index 2cb7ccd..f12fb02 100644 --- a/app/views/shared/noosfero_layout_features.rhtml +++ b/app/views/shared/noosfero_layout_features.rhtml @@ -1,11 +1,3 @@ <% if is_testing_theme %> <%= render :file => 'shared/theme_test_panel' %> <% end %> - - diff --git a/public/javascripts/application.js b/public/javascripts/application.js index c614f08..96e634a 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -576,3 +576,11 @@ function limited_text_area(textid, limit) { return true; } } + +jQuery(function($) { + $('a').each(function() { + if (this.href == document.location.href) { + $(this).addClass('link-this-page'); + } + }); +}); -- libgit2 0.21.2