only set wpDestFile after selecting a file if its empty -- this could have been set...
authorJan Gerber <j@users.mediawiki.org>
Tue, 21 Jul 2009 15:51:00 +0000 (15:51 +0000)
committerJan Gerber <j@users.mediawiki.org>
Tue, 21 Jul 2009 15:51:00 +0000 (15:51 +0000)
js2/uploadPage.js

index a374d9a..2dc5e48 100644 (file)
@@ -21,7 +21,8 @@ var mwUploadHelper = {
                                'api_url' : wgServer + wgScriptPath + '/api.php',
                                'form_rewrite': true,                           
                                'new_source_cb' : function( orgFilename, oggName ){                                             
-                                               $j('#wpDestFile').val( oggName );
+                                       if($j('#wpDestFile').val() == "")
+                                                   $j('#wpDestFile').val( oggName );
                                                mwUploadHelper.doDestCheck();
                                },
                                'detect_cb':function(fogg_installed){