https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35383
--- Comment #6 from Marcel de Rooy <m.de.r...@rijksmuseum.nl> --- (In reply to Slava Shishkin from comment #5) > (In reply to Marcel de Rooy from comment #4) > > thanks, that makes a sense, > > I can wrap up it in "if", > > if (typeof Sortable !== 'undefined') { > $(clone).find("ul.sortable_subfield").each((i, e) => { > Sortable.create(e, { > animation: 150, > }); > }); > } > > but the best then is to make a callback option for CloneSubfield and leave > Sortable.create code in files where it resides, > > but that also leads to refactoring of onclick="CloneSubfield... to modern > way how we doing that in our codebase by moving that listener to JS document > ready block > > Marcel, what do you think? You are welcome to improve it. Please do so on a new report. I think that this patch can go in now in its current form. Your commitment is appreciated. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/