Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. replyHiding = {
  2.     init: function() {
  3.       return g.callbacks.push(function(root) {
  4.         var a, dd, id, reply;
  5.         if (!(dd = $('.doubledash', root))) return;
  6.         dd.className = 'replyhider';
  7.         a = $.el('a', {
  8.           textContent: '[ - ]',
  9.           href: 'javascript:;'
  10.         });
  11.         $.on(a, 'click', replyHiding.cb.hide);
  12.         $.replace(dd.firstChild, a);
  13.         reply = dd.nextSibling;
  14.         id = reply.id;
  15.         if (id in g.hiddenReplies) return replyHiding.hide(reply);
  16.       });
  17.     },