Skip to content

Commit

Permalink
Update downloadPlus.uc.js
Browse files Browse the repository at this point in the history
修复"下载重命名"为可编辑 textbox
  • Loading branch information
Alife committed Sep 16, 2014
1 parent 5eb0844 commit 3fb940b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions downloadPlus.uc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -370,3 +370,4 @@
}

})();

0 comments on commit 3fb940b

Please sign in to comment.