Commit 10218c1d70cd5ca985b519fafca5154f27e79236

Authored by Antonio Terceiro
1 parent bec3c316

Don't fuck with non-IE users

(ActionItem658)
app/helpers/application_helper.rb
@@ -545,7 +545,6 @@ module ApplicationHelper @@ -545,7 +545,6 @@ module ApplicationHelper
545 content_tag( 'span', h(name), :class => ( profile.class == Person ? 'fn' : 'org' ) ) + 545 content_tag( 'span', h(name), :class => ( profile.class == Person ? 'fn' : 'org' ) ) +
546 city + extra_info + profile_sex_icon( profile ) + profile_cat_icons( profile ), 546 city + extra_info + profile_sex_icon( profile ) + profile_cat_icons( profile ),
547 profile.url, 547 profile.url,
548 - :onclick => 'document.location.href = this.href', # work-arround for ie.  
549 :class => 'profile_link url', 548 :class => 'profile_link url',
550 :help => _('Click on this icon to go to the <b>%s</b>\'s home page') % profile.name, 549 :help => _('Click on this icon to go to the <b>%s</b>\'s home page') % profile.name,
551 :title => profile.name ), 550 :title => profile.name ),
@@ -565,7 +564,6 @@ module ApplicationHelper @@ -565,7 +564,6 @@ module ApplicationHelper
565 content_tag( 'span', name, :class => 'org' ) + 564 content_tag( 'span', name, :class => 'org' ) +
566 content_tag( 'span', n_('1 member', '%s members', profile.members.count) % profile.members.count, :class => 'community-member-count' ), 565 content_tag( 'span', n_('1 member', '%s members', profile.members.count) % profile.members.count, :class => 'community-member-count' ),
567 profile.url, 566 profile.url,
568 - :onclick => 'document.location.href = this.href', # work-arround for ie.  
569 :class => 'profile_link url', 567 :class => 'profile_link url',
570 :help => _('Click on this icon to go to the <b>%s</b>\'s home page') % profile.name, 568 :help => _('Click on this icon to go to the <b>%s</b>\'s home page') % profile.name,
571 :title => profile.name ) + 569 :title => profile.name ) +
public/javascripts/application.js
@@ -641,3 +641,11 @@ jQuery(function($) { @@ -641,3 +641,11 @@ jQuery(function($) {
641 } 641 }
642 }); 642 });
643 }); 643 });
  644 +
  645 +jQuery(function($) {
  646 + if ($.browser.msie) {
  647 + $('.profile_link').click(function() {
  648 + document.location.href = this.href;
  649 + })
  650 + }
  651 +});