Browse Source

toggle-locked-threads.js: fix outstanding bug and make it work with ukko

pull/40/head
czaks 10 years ago
parent
commit
8781d5ee67
  1. 9
      js/toggle-locked-threads.js

9
js/toggle-locked-threads.js

@ -56,9 +56,16 @@ $(document).ready(function(){
});
if (hide_locked_threads) {
$('img.icon[title="Locked"]').each(function() {
$('img.icon[title="Locked"], i.icon-lock.icon').each(function() {
hideLockedThread(getThreadFromIcon($(this)));
});
}
$(document).bind('new_post', function(e, post) {
if (hide_locked_threads) {
$(post).find('img.icon[title="Locked"], i.icon-lock.icon').each(function() {
hideLockedThread(getThreadFromIcon($(this)));
});
}
});
});

Loading…
Cancel
Save