From ebedad54954665b6fe5ea7a4df70bac86e4e0689 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 11 Aug 2005 10:08:57 +0000 Subject: [PATCH] * (bug 2527) Always set destination filename when new file is selected --- RELEASE-NOTES | 1 + skins/common/wikibits.js | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 911209d084..aaf49805a9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -12,6 +12,7 @@ Misc work going on..... * please fill in for the last couple weeks * Rearranged Special:Movepage form to reduce confusion between destination title and reason input boxes +* (bug 2527) Always set destination filename when new file is selected === Caveats === diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 60d2e4b08f..3abb9f7892 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -486,10 +486,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; } -- 2.20.1