Bartosz Dziewoński has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/351020 )
Change subject: Fix jQuery 3 deprecations
......................................................................
Fix jQuery 3 deprecations
* JQMIGRATE: jQuery.expr[":"] is now jQuery.expr.pseudos
* JQMIGRATE: jQuery.fn.bind() is deprecated
Change-Id: I00699ce65f29c4ba972bd6900342bfada8ce655d
---
M resources/jquery/jquery.lazyload.js
M resources/mw.UploadWizardUploadInterface.js
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/20/351020/1
diff --git a/resources/jquery/jquery.lazyload.js
b/resources/jquery/jquery.lazyload.js
index 1e68433..b22b1e5 100644
--- a/resources/jquery/jquery.lazyload.js
+++ b/resources/jquery/jquery.lazyload.js
@@ -227,7 +227,7 @@
/* Use as $("img:below-the-fold").something() or */
/* $("img").filter(":below-the-fold").something() which is faster */
- $.extend($.expr[":"], {
+ $.extend($.expr.pseudos, {
"below-the-fold" : function(a) { return $.belowthefold(a, {threshold :
0}); },
"above-the-top" : function(a) { return !$.belowthefold(a, {threshold
: 0}); },
"right-of-screen": function(a) { return $.rightoffold(a, {threshold :
0}); },
diff --git a/resources/mw.UploadWizardUploadInterface.js
b/resources/mw.UploadWizardUploadInterface.js
index d4c50e7..8ba3d89 100644
--- a/resources/mw.UploadWizardUploadInterface.js
+++ b/resources/mw.UploadWizardUploadInterface.js
@@ -68,7 +68,7 @@
// this.progressBar = ( no progress bar for individual uploads
yet )
// we bind to the ui div since unbind doesn't work for non-DOM
objects
- $( this.div ).bind( 'transportProgressEvent', function () {
ui.showTransportProgress(); } );
+ $( this.div ).on( 'transportProgressEvent', function () {
ui.showTransportProgress(); } );
};
OO.mixinClass( mw.UploadWizardUploadInterface, OO.EventEmitter );
--
To view, visit https://gerrit.wikimedia.org/r/351020
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I00699ce65f29c4ba972bd6900342bfada8ce655d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits