If I comment the line 'numExisting + = 1;' it works, it doesn't make sense. I see that this line adds up when the number of inputs was already added to the total. Does anyone know what is happening or where can I check?
Now what it does is that send sends correctly, but if I add more than two images they are not previewed El sábado, 20 de febrero de 2021 a las 16:37:15 UTC+1, meig...@meigallodixital.com escribió: > We need to duplicate the product images tab to have internal use images > separated from the catalog ones. > > We have duplicated the block of images and changed the classes of the html > elements by adding '-purchase' [1]. We have also created a javascript with > the modified functions for this block [2]. > > But something is missing because although when sending the form in html > the number of inputs is correct, when sending them it duplicates them and > gives a validation error. Preview and sort works correctly. Does anyone > know why? > > [1] https://pastebin.com/k7KdkXSb > [2] https://pastebin.com/mJB8Am6S > -- https://github.com/django-oscar/django-oscar http://django-oscar.readthedocs.org/en/latest/ --- You received this message because you are subscribed to the Google Groups "django-oscar" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/089baec5-f09a-4c9b-813e-b8ae747d8d7dn%40googlegroups.com.