Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2011
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1.  
  2. // stuff checked from program page
  3. $('.unflag-action').each(function() { $(this).parent().parent().parent().parent().css('background', 'yellow'); });
  4. // stuff you signed up from within single talk page
  5. var profile_name = $('#block-user-1 h2').html();
  6. var titles = $('.views-field-title a strong');
  7. $.ajax({
  8. url: '/users/'+profile_name,
  9. success: function(data) {
  10. var signups = $('ul.primary a[href*="signups"]', data).attr('href');
  11. $.ajax({
  12. url: signups,
  13. success: function (data) {
  14. $('#view-id-signup_current_signups-page li .field-content a', data).each(function() {
  15. var talk = $(this).html();
  16. // slow but remember this is a hack
  17. titles.each(function () {
  18. if ($(this).html() == talk)
  19. $(this).parent().parent().parent().parent().css('background', 'red');
  20. });
  21. });
  22. }
  23. });
  24. }
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement