diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2016-07-12 10:29:04 +0300 |
---|---|---|
committer | Chris Rebert <github@chrisrebert.com> | 2016-07-12 10:29:04 +0300 |
commit | 1956146787d686f5771ae51f7b96f3a3ad62ce09 (patch) | |
tree | 073ccb1f19e99224d7cd480b3d285dee8a51df53 /js | |
parent | 769b2d2462c1174e64209d5ab985759fdad91a1a (diff) |
alert: Avoid calling jQuery('#'), it's a syntax error in jQuery 3.0 (#20019)
Diffstat (limited to 'js')
-rw-r--r-- | js/alert.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/alert.js b/js/alert.js index 807f23d756..79b15552b7 100644 --- a/js/alert.js +++ b/js/alert.js @@ -31,7 +31,7 @@ selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 } - var $parent = $(selector) + var $parent = $(selector === '#' ? [] : selector) if (e) e.preventDefault() |