Hello! The site uses a javascript plugin that allows you to drag and drop list items. It normally connects and works. But now it was sometimes necessary to initialize the plugin when ajax was updated on a part of the page using the parameter. Here is the initialization code:
$("#all_packages_ul_"+PACKAGING_ID_GLOB).dragsort({ dragSelector: "div", dragEnd: saveOrder_packages_6, placeHolderTemplate: "<li class='placeHolder'><div></div></li>" вместо 6 должно тоже стоять выражение из переменной PACKAGING_ID_GLOB, не знаю как его туда подставить и возможно ли это, т.е. динамически формировать название функции