aboutsummaryrefslogtreecommitdiffstats
path: root/skins/common/wikibits.js
diff options
context:
space:
mode:
Diffstat (limited to 'skins/common/wikibits.js')
-rw-r--r--skins/common/wikibits.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js
index 249f72064619..76485a2c1133 100644
--- a/skins/common/wikibits.js
+++ b/skins/common/wikibits.js
@@ -479,10 +479,7 @@ function fillDestFilename() {
// Output result
var destFile = document.getElementById('wpDestFile');
- if (destFile.value == '' || destFile.value == document.fname ) {
- document.getElementById('wpDestFile').value = fname;
- }
- document.fname = fname;
+ if (destFile) destFile.value = fname;
}