diff options
| author | czaks <marcin@6irc.net> | 2014-01-19 14:27:24 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-01-19 14:27:24 +0100 |
| commit | 1c6b178dc537f1daf88cb5a16f9dd51390dc3a37 (patch) | |
| tree | 1ba9343df9e2c53b4d02982e0efe8bf9a06534e1 /js/toggle-images.js | |
| parent | 29642bba3e8f52c6f9e05eeb7ecbadb3e8ad4385 (diff) | |
add copyright notices for javascripts based on commit history
Diffstat (limited to 'js/toggle-images.js')
| -rw-r--r-- | js/toggle-images.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/toggle-images.js b/js/toggle-images.js index bd92e366..554aa111 100644 --- a/js/toggle-images.js +++ b/js/toggle-images.js @@ -3,6 +3,7 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org> + * Copyright (c) 2013-2014 Marcin Ćabanowski <marcin@6irc.net> * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; @@ -58,10 +59,10 @@ $(document).ready(function(){ .click(function() { hide_images = !hide_images; if (hide_images) { - $('img.post-image').each(hideImage); + $('img.post-image, .theme-catalog .thread>a>img').each(hideImage); localStorage.hideimages = true; } else { - $('img.post-image').each(restoreImage); + $('img.post-image, .theme-catalog .thread>a>img').each(restoreImage); delete localStorage.hideimages; } @@ -71,7 +72,7 @@ $(document).ready(function(){ }); if (hide_images) { - $('img.post-image, .catalog-theme .thread img').each(hideImage); + $('img.post-image, .theme-catalog .thread>a>img').each(hideImage); show_hide_hide_images_buttons(); } |
