r64059 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64058‎ | r64059 | r64060 >
Date:03:02, 23 March 2010
Author:dale
Status:deferred
Tags:
Comment:
ignore warning upload description was misbehaving
Modified paths:
  • /branches/js2-work/phase3/js/mwEmbed/modules/AddMedia/mw.UploadHandler.js (modified) (history)
  • /branches/js2-work/phase3/js/mwEmbed/remotes/mediaWiki.js (modified) (history)
  • /branches/js2-work/phase3/js/specialUploadWizardPage.js (replaced) (history)

Diff [purge]

Index: branches/js2-work/phase3/js/mwEmbed/modules/AddMedia/mw.UploadHandler.js
@@ -797,19 +797,20 @@
798798 var _this = this;
799799 // Check if we have a stashed key:
800800 if ( _this.warnings_sessionkey !== false ) {
801 - //set to "loading"
 801+
 802+ // Set to "loading"
802803 _this.ui.setLoading();
803 - //setup request:
 804+
 805+ // Setup request:
804806 var request = {
805807 'action': 'upload',
806808 'sessionkey': _this.warnings_sessionkey,
807809 'ignorewarnings': 1,
808810 'token' : _this.getToken(),
809811 'filename' : _this.getFileName(),
810 - 'comment' : $j( this.form ).find( "[name='comment']" ).val()
811 - };
 812+ 'comment' : _this.getUploadDescription()
 813+ };
812814
813 -
814815 //run the upload from stash request
815816 mw.getJSON(_this.apiUrl, request, function( data ) {
816817 _this.processApiResult( data );
Index: branches/js2-work/phase3/js/mwEmbed/remotes/mediaWiki.js
@@ -4,7 +4,7 @@
55 */
66 var urlparts = getRemoteEmbedPath();
77 var mwEmbedHostPath = urlparts[0];
8 -var mwRemoteVersion = 'r114';
 8+var mwRemoteVersion = 'r115';
99
1010 // Log the mwRemote version ( will determine what version of js we get )
1111 if( window.console ){

Status & tagging log