summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-12-27 15:35:14 +0100
committerczaks <marcin@6irc.net>2013-12-27 15:35:14 +0100
commit8781d5ee67339383064f4fa4653a027ef47a755e (patch)
treec52dd3310069352918f1c31b1cda1e84746fe49a /js
parent557fbe91b4228519e7f6801fbee4b5ba5a6eefd7 (diff)
toggle-locked-threads.js: fix outstanding bug and make it work with ukko
Diffstat (limited to 'js')
-rw-r--r--js/toggle-locked-threads.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/js/toggle-locked-threads.js b/js/toggle-locked-threads.js
index fc14ea2e..3fd8b983 100644
--- a/js/toggle-locked-threads.js
+++ b/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)));
+ });
+ }
+ });
});