Author Topic: jQuery UI v1.9.2 issue  (Read 117 times)

philip_sorokin

  • Beginner
  • *
  • Posts: 13
  • A beginner
jQuery UI v1.9.2 issue
« 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.

sirius

  • Jr. Member
  • **
  • Posts: 187
    • OCTeam
  • VirtueMart Version: 3.8.6
Re: jQuery UI v1.9.2 issue
« Reply #1 on: January 25, 2023, 15:50:56 pm »
jquery-migrate.js should handle this
Code: [Select]
/*!
 * 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()" );
J3.10.11 | PHP 7.4.33 + APC + memcached + Opcode
VM Prod : 3.8.6 | VM Test : 4.0.12.10777

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1506
Re: jQuery UI v1.9.2 issue
« Reply #2 on: January 25, 2023, 16:25:29 pm »

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 871
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always the latest
Re: jQuery UI v1.9.2 issue
« Reply #3 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.