All pastes #895580 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-07 22:51 UTC
rendered paste body
function calc_age_spots(tablename) {
        for (id in spots) {
                var age = '0';
                age = calc_age( spots[id] );
                if ( age.length  == 1 )
                        return;

        //      $('table#' + tablename + ' tr.spot#' + id + ' span.age').empty().append(
        //              '(' + i18n_str["ago"].replace(/\@\@\@/g, age) + ')'
        //      );
                $('table#' + tablename + ' tr#' + id + '.spot td.utc span').attr( { title:
                        i18n_str["ago"].replace(/\@\@\@/g, age)
                } );
        }
}