jquery ui broken?
Posted: Wed Apr 14, 2021 2:57 pm
Hi Everybody, i coded today a lot and i recocgnized, that on categories.php (without changing there anything) the image sorting does not work anymore, i could swear it worked at the beginning (but don't know what i changed)
i received alway a error:
Uncaught TypeError: $(...).sortable is not a function
after debugging i tried to replace:
<script src="<?= tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.10.4.min.js') ?>"></script>
with the newst version:
<script src="https://code.jquery.com/ui/1.12.1/jquer ... "></script>
and everything worked! i'm not sure if i changed that / plugin changed that, but i have a hook which includes:
<script src="https://cdnjs.cloudflare.com/ajax/libs/ ... ery.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
not sure if a plugin changed to the newest jquery and then the ui did not work anymore? at the moment i don't get it.....maybe somebody has a idea?
i received alway a error:
Uncaught TypeError: $(...).sortable is not a function
after debugging i tried to replace:
<script src="<?= tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.10.4.min.js') ?>"></script>
with the newst version:
<script src="https://code.jquery.com/ui/1.12.1/jquer ... "></script>
and everything worked! i'm not sure if i changed that / plugin changed that, but i have a hook which includes:
<script src="https://cdnjs.cloudflare.com/ajax/libs/ ... ery.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
not sure if a plugin changed to the newest jquery and then the ui did not work anymore? at the moment i don't get it.....maybe somebody has a idea?