mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix encoding menu in file node
This commit is contained in:
parent
63829b6382
commit
0f57d1a433
11
packages/node_modules/@node-red/nodes/core/storage/50-file.html
vendored
Normal file → Executable file
11
packages/node_modules/@node-red/nodes/core/storage/50-file.html
vendored
Normal file → Executable file
@ -22,7 +22,7 @@
|
||||
<input type="checkbox" id="node-input-createDir" style="display: inline-block; width: auto; vertical-align: top;">
|
||||
<label for="node-input-createDir" style="width: 70%;"><span data-i18n="file.label.createdir"></span></label>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-row form-row-file-encoding">
|
||||
<label for="node-input-encoding"><i class="fa fa-flag"></i> <span data-i18n="file.label.encoding"></span></label>
|
||||
<select type="text" id="node-input-encoding" style="width: 250px;">
|
||||
</select>
|
||||
@ -246,8 +246,13 @@
|
||||
});
|
||||
encSel.val(node.encoding);
|
||||
$("#node-input-overwriteFile").on("change",function() {
|
||||
if (this.value === "delete") { $(".form-row-file-write-options").hide(); }
|
||||
else { $(".form-row-file-write-options").show(); }
|
||||
if (this.value === "delete") {
|
||||
$(".form-row-file-write-options").hide();
|
||||
$(".form-row-file-encoding").hide();
|
||||
} else {
|
||||
$(".form-row-file-write-options").show();
|
||||
$(".form-row-file-encoding").show();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -859,6 +859,7 @@
|
||||
"breaklines": "Break into lines",
|
||||
"filelabel": "file",
|
||||
"sendError": "Send message on error (legacy mode)",
|
||||
"encoding": "Encoding",
|
||||
"deletelabel": "delete __file__",
|
||||
"utf8String": "UTF8 string",
|
||||
"binaryBuffer": "binary buffer"
|
||||
|
@ -857,6 +857,7 @@
|
||||
"breaklines": "行へ分割",
|
||||
"filelabel": "file",
|
||||
"sendError": "エラーメッセージを送信(互換モード)",
|
||||
"encoding": "文字コード",
|
||||
"deletelabel": "delete __file__",
|
||||
"utf8String": "UTF8文字列",
|
||||
"binaryBuffer": "バイナリバッファ"
|
||||
|
Loading…
Reference in New Issue
Block a user