Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- replyHiding = {
- init: function() {
- return g.callbacks.push(function(root) {
- var a, dd, id, reply;
- if (!(dd = $('.doubledash', root))) return;
- dd.className = 'replyhider';
- a = $.el('a', {
- textContent: '[ - ]',
- href: 'javascript:;'
- });
- $.on(a, 'click', replyHiding.cb.hide);
- $.replace(dd.firstChild, a);
- reply = dd.nextSibling;
- id = reply.id;
- if (id in g.hiddenReplies) return replyHiding.hide(reply);
- });
- },
Add Comment
Please, Sign In to add comment