mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-29 19:37:30 +01:00
toggle-locked-threads.js: fix outstanding bug and make it work with ukko
This commit is contained in:
parent
ad711d00b3
commit
60d94dd811
@ -56,9 +56,16 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (hide_locked_threads) {
|
if (hide_locked_threads) {
|
||||||
$('img.icon[title="Locked"]').each(function() {
|
$('img.icon[title="Locked"], i.icon-lock.icon').each(function() {
|
||||||
hideLockedThread(getThreadFromIcon($(this)));
|
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…
x
Reference in New Issue
Block a user