r83257 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83256‎ | r83257 | r83258 >
Date:23:40, 4 March 2011
Author:neilk
Status:deferred
Tags:
Comment:
todo is now a todone
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -556,8 +556,8 @@
557557 */
558558 updateFilename: function() {
559559 var _this = this;
560 - // TODO get basename of file; Chrome does this C:\fakepath\something which is highly irritating
561560 var path = _this.$fileInputCtrl.val();
 561+ // get basename of file; some browsers do this C:\fakepath\something
562562 path = path.replace(/\w:.*\\(.*)$/,'$1');
563563
564564 // visible filename

Status & tagging log