AltynbekKZ / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 1 forks source link

imageData is undefined #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Delete the thumbnails

What is the expected output? What do you see instead?
Expected output: the script should not send an error, but just do nothing
like many other scripts

What version of the product are you using?
2.0.1

Please provide any additional information below.

Original issue reported on code.google.com by bganti...@googlemail.com on 19 Jan 2010 at 7:09

GoogleCodeExporter commented 8 years ago
"Delete the thumbnails" or every other page that includes the galleriffic-script
without having a gallery.

Original comment by bganti...@googlemail.com on 19 Jan 2010 at 7:12

GoogleCodeExporter commented 8 years ago
same error here

Original comment by denad...@gmail.com on 2 Mar 2010 at 8:06

GoogleCodeExporter commented 8 years ago
I managed to get it working when I took out the extra:
document.write("<style>.noscript { display: none; }</style>"); and just added 
it to
my stylesheet :P

Original comment by chronicg...@gmail.com on 5 May 2010 at 5:34

GoogleCodeExporter commented 8 years ago
hey chronicgeek,
sorry i cannot fix this bug with your suggested solution.

i dealt with this problem once again, studied the code and here is my proper 
solution:
- add the following code after line 283 ("preloadInit: function() {"):
  if (!this.currentImage) return false;

- add the following code after line 504 ("gotoImage: function(imageData) {"):
  if (!imageData) return false;

remember: i am using version 2.0.1

feel free to verify it :-)

Original comment by bganti...@googlemail.com on 5 May 2010 at 7:29

GoogleCodeExporter commented 8 years ago
bgantikow, thank you so much!!!!!!!!!

Original comment by raqueluc...@gmail.com on 17 Jun 2010 at 8:00

GoogleCodeExporter commented 8 years ago
Thanks for pointing that out.

I had to add in line 442:

if (!this.currentImage) return false;

in the declaration of function next()

Original comment by Wurstsch...@googlemail.com on 14 Oct 2010 at 10:39

GoogleCodeExporter commented 8 years ago
bgantikow, thank you for your solution!

Original comment by brunomon...@gmail.com on 1 Feb 2011 at 3:26

GoogleCodeExporter commented 8 years ago
Thanks, Thanks, Thanks, a lot of Thanks :)

Original comment by ikaj...@gmail.com on 12 Feb 2011 at 8:44

GoogleCodeExporter commented 8 years ago
I recommend adding this just before the gallery is initialized.

Just under line 885 (var gallery = this;) add:

if (!this.currentImage) return false;

Original comment by b...@planetcloud.co.uk on 31 Jul 2011 at 2:14

GoogleCodeExporter commented 8 years ago
9 b...@planetcloud.co.uk

you are genius!!

Original comment by Maciej.D...@gmail.com on 3 Feb 2013 at 1:36

GoogleCodeExporter commented 8 years ago
#9 b...@planetcloud.co.uk

You are genius!!!

Thanks

Original comment by pmunanka...@gmail.com on 18 Aug 2014 at 2:20

GoogleCodeExporter commented 8 years ago
 b...@planetcloud.co.uk

I love you!

Original comment by marisadi...@gmail.com on 19 Nov 2014 at 4:18