From 73f68654096a762b9f1c6cfeb80e785932a9f200 Mon Sep 17 00:00:00 2001 From: Michael Dale Date: Mon, 19 Oct 2009 23:31:31 +0000 Subject: [PATCH] * fixed bug 21193 updated on new source selection --- js2/uploadPage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js2/uploadPage.js b/js2/uploadPage.js index 9299d56e67..a41b2ddc34 100644 --- a/js2/uploadPage.js +++ b/js2/uploadPage.js @@ -24,8 +24,7 @@ var mwUploadHelper = { 'api_url': wgServer + wgScriptPath + '/api.php', 'form_rewrite': true, 'target_edit_from': mwUploadFormTarget, - 'new_source_cb': function( orgFilename, oggName ) { - if( $j( '#wpDestFile' ).val() == "" ) + 'new_source_cb': function( orgFilename, oggName ) { $j( '#wpDestFile' ).val( oggName ); $j( '#wpDestFile' ).doDestCheck({ 'warn_target': '#wpDestFile-warning' -- 2.20.1