vvvmax / unitegallery

Unite Gallery - Responsive jQuery Image and Video Gallery Plugin. Aim to be the best gallery on the web on it's kind. See demo here:
http://unitegallery.net
MIT License
530 stars 158 forks source link

API JS Error #134

Open perea1 opened 7 years ago

perea1 commented 7 years ago

Hi,

im using tiles_columns.html Template with this API Code:

    jQuery(document).ready(function () {
        galapi = $("#gallery").unitegallery();
        galapi.on("item_change", function (num, data) {
            //alert(data.description);
        });
        jQuery("#gallery").unitegallery();
    });

This Error appears in Chrome console:

Problematic gallery item found: unitegallery.min.js:3 [div.ug-overlay-disabled, context: div.ug-overlay-disabled] unitegallery.min.js:3 Please look for some third party js script that could add this item to the gallery unitegallery.min.js:8 Uncaught Error: The item should not be image type at fillItemsArray (unitegallery.min.js:8) at runGallery (unitegallery.min.js:8) at UniteGalleryMain.run (unitegallery.min.js:9) at n.fn.init.jQuery.fn.unitegallery (unitegallery.min.js:10) at HTMLDocument. (tiles_columns.html:438) at j (jquery-11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-11.0.min.js:2) at Function.ready (jquery-11.0.min.js:2) at HTMLDocument.K (jquery-11.0.min.js:2) fillItemsArray @ unitegallery.min.js:8 runGallery @ unitegallery.min.js:8 UniteGalleryMain.run @ unitegallery.min.js:9 jQuery.fn.unitegallery @ unitegallery.min.js:10 (anonymous) @ tiles_columns.html:438 j @ jquery-11.0.min.js:2 fireWith @ jquery-11.0.min.js:2 ready @ jquery-11.0.min.js:2 K @ jquery-11.0.min.js:2


Thanks, for this great Script!

Peter

felgharb commented 7 years ago

Hello, Im having the same issue trying to add more images. Did you get any solution ?

Thanks

perea1 commented 7 years ago

Hi,

sorry i could not find a solution.

Best Regards, Peter

2017-04-19 17:26 GMT+02:00 felgharb notifications@github.com:

Hello, Im having the same issue trying to add more images. Did you get any solution ?

Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vvvmax/unitegallery/issues/134#issuecomment-295309793, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ-m3O6N8jxSW-hN1uzVQKLU4OHFDAoYks5rxieXgaJpZM4L9qSN .

bm2ilabs commented 7 years ago

i think the issue is from referring to the same element twice , check your js if you did , i solved with that

felgharb commented 7 years ago

I did find a very nasty solution :-) My point was to append new images to the gallery while the user is scrolling. I get to a temporary solution by creating new justified galleries. The user cant see the difference... The only bad point of this is the user cannot see the whole images while in fullscreen.