From: Michael Dale Date: Mon, 19 Oct 2009 23:31:31 +0000 (+0000) Subject: * fixed bug 21193 updated on new source selection X-Git-Tag: 1.31.0-rc.0~39221 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=73f68654096a762b9f1c6cfeb80e785932a9f200;p=lhc%2Fweb%2Fwiklou.git * fixed bug 21193 updated on new source selection --- 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'