X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=js%2FeditPage.js;h=1843be911ae682ce4b3347c1d10a9509c878c9c4;hp=26b68ce7a7e4542c3411e2cbb5242255b4512580;hb=c21f22c897782e6d49ce1e8cd06e2cb27d02d2f6;hpb=fd2a7fe743221bea7c20e3519bdd5c864288f4c7 diff --git a/js/editPage.js b/js/editPage.js index 26b68ce..1843be9 100644 --- a/js/editPage.js +++ b/js/editPage.js @@ -237,13 +237,13 @@ = $.INPUT({type: "button", value: "Select file..."}); $(btnSelectFile).click(function () { - var path = Rakka.selectFile("Select a binary file to upload", "open"); - if (path != null) { - uploadFileBin = Rakka.loadLocalBinaryFile(path); - fldUploadFile.value = Rakka.hexDump(uploadFileBin, 128); - makeDirty(); - } - }); + var file = Rakka.selectFile("Select a binary file to upload", "open"); + if (file != null) { + uploadFileBin = Rakka.loadLocalBinaryFile(file); + fldUploadFile.value = Rakka.hexDump(uploadFileBin, 128); + makeDirty(); + } + }); var fldRedirect = $.INPUT({type: "text", value: (defaultType == "redirect" ? source : "")});