Skip to content

Commit aff16f4

Browse files
committed
Replace deprecated :image with standard [type=image] selector.
1 parent 0c3860b commit aff16f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ function captureSubmittingElement(e) {
764764
/*jshint validthis:true */
765765
var target = e.target;
766766
var $el = $(target);
767-
if (!($el.is("[type=submit],input:image"))) {
767+
if (!($el.is("[type=submit],[type=image]"))) {
768768
// is this a child element of the submit el? (ex: a span within a button)
769769
var t = $el.closest('[type=submit]');
770770
if (t.length === 0) {

0 commit comments

Comments
 (0)