Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // stuff checked from program page
- $('.unflag-action').each(function() { $(this).parent().parent().parent().parent().css('background', 'yellow'); });
- // stuff you signed up from within single talk page
- var profile_name = $('#block-user-1 h2').html();
- var titles = $('.views-field-title a strong');
- $.ajax({
- url: '/users/'+profile_name,
- success: function(data) {
- var signups = $('ul.primary a[href*="signups"]', data).attr('href');
- $.ajax({
- url: signups,
- success: function (data) {
- $('#view-id-signup_current_signups-page li .field-content a', data).each(function() {
- var talk = $(this).html();
- // slow but remember this is a hack
- titles.each(function () {
- if ($(this).html() == talk)
- $(this).parent().parent().parent().parent().css('background', 'red');
- });
- });
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement