mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-23 18:56:04 +00:00
Point.im update hotfix.
This commit is contained in:
parent
1f3064ae3e
commit
23d52c8bed
|
@ -5,11 +5,11 @@ $(document).ready(function() {
|
||||||
// Images
|
// Images
|
||||||
if (options.option_fancybox_images == true) {
|
if (options.option_fancybox_images == true) {
|
||||||
// TODO: group images to the galeries
|
// TODO: group images to the galeries
|
||||||
$('.postimg:not(.video)').fancybox();
|
$('.postimg:not(.youtube)').fancybox();
|
||||||
}
|
}
|
||||||
// Videos
|
// Videos
|
||||||
if (options.option_fancybox_videos == true) {
|
if (options.option_fancybox_videos == true) {
|
||||||
$('.postimg.video').addClass('fancybox-media').fancybox({
|
$('.postimg.youtube').addClass('fancybox-media').fancybox({
|
||||||
helpers: {
|
helpers: {
|
||||||
media: {
|
media: {
|
||||||
youtube: {
|
youtube: {
|
||||||
|
@ -49,12 +49,12 @@ $(document).ready(function() {
|
||||||
// Image resizing
|
// Image resizing
|
||||||
if (options.option_images_load_original == true) {
|
if (options.option_images_load_original == true) {
|
||||||
// Setting new image source
|
// Setting new image source
|
||||||
$('.postimg:not(.video) img').each(function(){
|
$('.postimg:not(.youtube) img').each(function(){
|
||||||
console.log($(this).parent('.postimg').attr('href'));
|
console.log($(this).parent('.postimg').attr('href'));
|
||||||
$(this).attr('src', $(this).parent('.postimg').attr('href'));
|
$(this).attr('src', $(this).parent('.postimg').attr('href'));
|
||||||
});
|
});
|
||||||
// Resizing
|
// Resizing
|
||||||
$('.postimg:not(.video), .postimg:not(.video) img').css({
|
$('.postimg:not(.youtube), .postimg:not(.youtube) img').css({
|
||||||
'width': 'auto',
|
'width': 'auto',
|
||||||
'height': 'auto',
|
'height': 'auto',
|
||||||
'max-width': '100%',
|
'max-width': '100%',
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<label><input type="checkbox" id="option-fancybox-images">Use for images</label>
|
<label><input type="checkbox" id="option-fancybox-images">Use for images</label>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label><input type="checkbox" id="option-fancybox-videos">Use for videos</label>
|
<label><input type="checkbox" id="option-fancybox-videos">Use for videos (YouTube, ...)</label>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label><input type="checkbox" id="option-fancybox-posts">Use for post links (including comments)</label>
|
<label><input type="checkbox" id="option-fancybox-posts">Use for post links (including comments)</label>
|
||||||
|
|
Loading…
Reference in a new issue