summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-01-17 00:42:49 +0100
committerMichael Foster <savetheinterpod@gmail.com>2014-01-19 14:58:55 -0500
commit9c1cdb7636472e65998625efae01c3e364167202 (patch)
treee8fad097ff7640515be329678548c6fb1b3b115a
parent676294ddfc6d70558059b761baae5de00419902c (diff)
toggle-locked-threads.js: update to font-awesome-3.0
Conflicts: js/toggle-locked-threads.js
-rw-r--r--js/toggle-locked-threads.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/js/toggle-locked-threads.js b/js/toggle-locked-threads.js
index 1d517a4d..8840fe34 100644
--- a/js/toggle-locked-threads.js
+++ b/js/toggle-locked-threads.js
@@ -40,12 +40,12 @@ $(document).ready(function(){
.click(function() {
hide_locked_threads = !hide_locked_threads;
if (hide_locked_threads) {
- $('img.icon[title="Locked"]').each(function() {
+ $('img.icon[title="Locked"], i.fa-lock.fa').each(function() {
hideLockedThread(getThreadFromIcon($(this)));
});
localStorage.hidelockedthreads = true;
} else {
- $('img.icon[title="Locked"]').each(function() {
+ $('img.icon[title="Locked"], i.fa-lock.fa').each(function() {
restoreLockedThread(getThreadFromIcon($(this)));
});
delete localStorage.hidelockedthreads;
@@ -55,9 +55,16 @@ $(document).ready(function(){
});
if (hide_locked_threads) {
- $('img.icon[title="Locked"]').each(function() {
+ $('img.icon[title="Locked"], i.fa-lock.fa').each(function() {
hideLockedThread(getThreadFromIcon($(this)));
});
}
+ $(document).bind('new_post', function(e, post) {
+ if (hide_locked_threads) {
+ $(post).find('img.icon[title="Locked"], i.fa-lock.fa').each(function() {
+ hideLockedThread(getThreadFromIcon($(this)));
+ });
+ }
+ });
});