mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #57823
[Bug 1843357] A change has been merged
Reviewed: https://reviews.mahara.org/10322
Committed: https://git.mahara.org/mahara/mahara/commit/15ed3e6e118a3ecd861d20611317e835e1e54420
Submitter: Cecilia Vela Gurovic (ceciliavg@xxxxxxxxxxxxxxx)
Branch: master
commit 15ed3e6e118a3ecd861d20611317e835e1e54420
Author: Rebecca Blundell <rebeccablundell@xxxxxxxxxxxxxxx>
Date: Tue Sep 10 12:44:52 2019 +1200
Bug 1843357: Remove deprecated jquery selectors
These are:
:first -> .first() or css first-child
:last -> .last() or css last-child
:eq -> .eq() or css nth-of-type(n)
:even -> css nth-child(odd) (odd because we're
going from 0->1 based indexing)
And these which were not found in Mahara:
:odd
:gt
:lt
Change-Id: I512db61de687f9ea3d7a31b1514f4aa962bcb1b0
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1843357
Title:
Library upgrade: remove jquery deprecations
Status in Mahara:
Fix Committed
Bug description:
This is related to https://bugs.launchpad.net/mahara/+bug/1840105
Jquery 3.4.0 deprecated quite a few selectors that we use. However
there are no warnings and the removal of related code is not scheduled
until 4.0. For that reason I am creating a new bug as a reminder to
fix this while I move on with other upgrades.
Deprecations: https://api.jquery.com/category/deprecated/deprecated-3.4/
Changelog: https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/
Basic example: https://forum.jquery.com/topic/jquery-3-4-replacement-examples-for-deprecated-positional-selectors-first-last
So the idea is to replace the selectors with the jquery methods
first(), last() and eq(), and/or to use equivalent css selectors.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1843357/+subscriptions
References