|
@ -41,12 +41,12 @@ $(document).ready(function(){ |
|
|
.click(function() { |
|
|
.click(function() { |
|
|
hide_locked_threads = !hide_locked_threads; |
|
|
hide_locked_threads = !hide_locked_threads; |
|
|
if (hide_locked_threads) { |
|
|
if (hide_locked_threads) { |
|
|
$('img.icon[title="Locked"], i.icon-lock.icon').each(function() { |
|
|
$('img.icon[title="Locked"], i.fa-lock.fa').each(function() { |
|
|
hideLockedThread(getThreadFromIcon($(this))); |
|
|
hideLockedThread(getThreadFromIcon($(this))); |
|
|
}); |
|
|
}); |
|
|
localStorage.hidelockedthreads = true; |
|
|
localStorage.hidelockedthreads = true; |
|
|
} else { |
|
|
} else { |
|
|
$('img.icon[title="Locked"], i.icon-lock.icon').each(function() { |
|
|
$('img.icon[title="Locked"], i.fa-lock.fa').each(function() { |
|
|
restoreLockedThread(getThreadFromIcon($(this))); |
|
|
restoreLockedThread(getThreadFromIcon($(this))); |
|
|
}); |
|
|
}); |
|
|
delete localStorage.hidelockedthreads; |
|
|
delete localStorage.hidelockedthreads; |
|
@ -56,13 +56,13 @@ $(document).ready(function(){ |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (hide_locked_threads) { |
|
|
if (hide_locked_threads) { |
|
|
$('img.icon[title="Locked"], i.icon-lock.icon').each(function() { |
|
|
$('img.icon[title="Locked"], i.fa-lock.fa').each(function() { |
|
|
hideLockedThread(getThreadFromIcon($(this))); |
|
|
hideLockedThread(getThreadFromIcon($(this))); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
$(document).bind('new_post', function(e, post) { |
|
|
$(document).bind('new_post', function(e, post) { |
|
|
if (hide_locked_threads) { |
|
|
if (hide_locked_threads) { |
|
|
$(post).find('img.icon[title="Locked"], i.icon-lock.icon').each(function() { |
|
|
$(post).find('img.icon[title="Locked"], i.fa-lock.fa').each(function() { |
|
|
hideLockedThread(getThreadFromIcon($(this))); |
|
|
hideLockedThread(getThreadFromIcon($(this))); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|