Rahul21 has uploaded a new change for review. https://gerrit.wikimedia.org/r/83231
Change subject: Adding "url" to the "ajax" object. ...................................................................... Adding "url" to the "ajax" object. Change-Id: Ib23bc1b751812ffb2f44783b15df93b77de974b4 --- M resources/mw.UploadWizard.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/31/83231/1 diff --git a/resources/mw.UploadWizard.js b/resources/mw.UploadWizard.js index cde66fe..dcfe86d 100644 --- a/resources/mw.UploadWizard.js +++ b/resources/mw.UploadWizard.js @@ -7,7 +7,7 @@ mw.UploadWizard = function( config ) { this.uploads = []; - this.api = new mw.Api( { url: config.apiUrl, ajax: { timeout: 0 } } ); + this.api = new mw.Api( { ajax: { url: config.apiUrl ,timeout: 0 } } ); // making a sort of global for now, should be done by passing in config or fragments of config when needed // elsewhere diff --git a/resources/mw.UploadWizardUploadInterface.js b/resources/mw.UploadWizardUploadInterface.js index f494098..a65a62a 100644 --- a/resources/mw.UploadWizardUploadInterface.js +++ b/resources/mw.UploadWizardUploadInterface.js @@ -80,7 +80,7 @@ // interface "below". // XXX caution -- if the add file input changes size we won't match, unless we add some sort of event to catch this. _this.form = $( '<form method="POST" encType="multipart/form-data" class="mwe-upwiz-form"></form>' ) - .attr( { action: _this.upload.api.defaults.url } ) + .attr( { action: _this.upload.api.defaults.ajax.url } ) .append( _this.visibleFilenameDiv ) .append( _this.fileCtrlContainer ) .append( _this.filenameCtrl ) -- To view, visit https://gerrit.wikimedia.org/r/83231 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib23bc1b751812ffb2f44783b15df93b77de974b4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/UploadWizard Gerrit-Branch: master Gerrit-Owner: Rahul21 <rahul14...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits