forked from leftypol/leftypol
add copyright notices for javascripts based on commit history
This commit is contained in:
parent
29642bba3e
commit
1c6b178dc5
21 changed files with 40 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue