Project

General

Profile

Bug #1897 ยป 1897.patch

krileon, 21 October 2010 18:41

View differences:

components/com_comprofiler/comprofiler.html.php
// CLICK a table row:
. "\n $('#cbUserTable > tbody > tr').click( function(e) {"
// If it's not a link within the row which is getting clicked:
. "\n if ( ! ( $(e.target).is('a') || ( $(e.target).is('img') && $(e.target).parent().is('a') ) || $(e.target).hasClass('cbClicksInside') || ( $(e.target).parents('.cbClicksInside').length > 0 ) ) ) {"
. "\n if ( ! ( ( $(this).attr('id') == '' ) || $(e.target).is('a') || ( $(e.target).is('img') && $(e.target).parent().is('a') ) || $(e.target).hasClass('cbClicksInside') || ( $(e.target).parents('.cbClicksInside').length > 0 ) ) ) {"
// Get the href of the user profile link (if profile links are allowed):
. ( ( $ueConfig['allow_profilelink'] == 1 ) ? "\n window.location = cbUserURLs[this.id.substr(3)];" : '' )
// And avoid the <a> link being followed:
    (1-1/1)