MDL-50937 tag: Stop using deprecated context

$.context has been deprecated for a long time - since before this code was
written. Unfortunately jQuery does not emit anything for deprecated code so
this was not picked up sooner.
This commit is contained in:
Andrew Nicols
2016-07-20 11:19:29 +08:00
parent 3c4778f5d2
commit eb3839dffd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -36,7 +36,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
$('body').delegate('.tagarea[data-ta] a[data-quickload=1]', 'click', function(e) {
e.preventDefault();
var target = $(this),
query = target.context.search.replace(/^\?/, ''),
query = target[0].search.replace(/^\?/, ''),
tagarea = target.closest('.tagarea[data-ta]'),
args = query.split('&').reduce(function(s, c) {
var t = c.split('=');