JQuery javascript Galleria IO
i have a galleria using IO everything runs smoothly but i have a problem
when i try to delete the selected image on the gallery.
here is the code i am using
var gallery = $('#galleriaID').data('galleria');
var index = gallery.getIndex();
gallery.splice(index,1);
gallery.next();
everything runs smoothly but when i try to delete the penultimate image on
the gallery doesn't remove and the gallery is blocked in the console i am
watching
TypeError: data is undefined
version "+version+" to use one or more
components.";if(Galleria.version<version...
galler...BC32189 (line 3)
TypeError: self.getData(...) is undefined
i am aware is only trying to delete the penultimate image int the gallery
what i am doing wrong there is some workaround??
thanks a lot...
No comments:
Post a Comment