VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: philip_sorokin on January 25, 2023, 11:03:25 AM

Title: jQuery UI v1.9.2 issue
Post by: philip_sorokin on January 25, 2023, 11:03:25 AM
VM 4.0.6 10690
Joomla! ‎4.2.6

Cannot drag and drop images when sorting them in the product view in the admin panel (images menu). This is because .andSelf() was deprecated in jQuery 1.8 and removed in jQuery 3.0. .addBack() should be used instead from jQuery 1.8 onward: https://api.jquery.com/andself/

Replacing .andSelf() to .addBack() resolves the issue.
Title: Re: jQuery UI v1.9.2 issue
Post by: sirius on January 25, 2023, 15:50:56 PM
jquery-migrate.js should handle this
/*!
* jQuery Migrate - v3.4.0 - 2022-03-24T16:30Z
* Copyright OpenJS Foundation and other contributors
*/
...
migratePatchAndWarnFunc( jQuery.fn, "andSelf", jQuery.fn.addBack, "andSelf",
"jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()" );
Title: Re: jQuery UI v1.9.2 issue
Post by: balai on January 25, 2023, 16:25:29 PM
Same here: http://forum.virtuemart.net/index.php?topic=148331
Title: Re: jQuery UI v1.9.2 issue
Post by: Jumbo! on January 25, 2023, 16:49:42 PM
I think it is already fixed in VM 4.0.12. The jQuery UI library has been updated.