From 3fb940b93f72953e5bfbf46234cbcc499801ff45 Mon Sep 17 00:00:00 2001 From: Alife Date: Tue, 16 Sep 2014 09:28:49 -0400 Subject: [PATCH] Update downloadPlus.uc.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复"下载重命名"为可编辑 textbox --- downloadPlus.uc.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/downloadPlus.uc.js b/downloadPlus.uc.js index ea7397b..764de7e 100644 --- a/downloadPlus.uc.js +++ b/downloadPlus.uc.js @@ -208,11 +208,11 @@ $("mode").addEventListener("select", function() { if (dialog.dialogElement("save").selected) { if (!locationText) { - locationText = downLocation.parentNode.insertBefore(document.createElement("textbox"), downLocation); - locationText.id = "locationtext"; - locationText.setAttribute("style", "margin-top:-2px;margin-bottom:-3px"); - locationText.value = downLocation.value; - } + var _locationText = downLocation.parentNode.insertBefore(document.createElement("textbox"), downLocation); + _locationText.id = "locationtext"; + _locationText.setAttribute("style", "margin-top:-2px;margin-bottom:-3px"); + _locationText.value = downLocation.value; + } downLocation.hidden = true; locationText.hidden = false; } else { @@ -370,3 +370,4 @@ } })(); +