Skip to content

Commit

Permalink
neo.js v1.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Dec 11, 2024
1 parent 98bd70e commit a78feed
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
43 changes: 21 additions & 22 deletions potiboard5/neo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ document.addEventListener("DOMContentLoaded", function () {

var Neo = function () {};

Neo.version = "1.6.8";
Neo.version = "1.6.9";
Neo.painter;
Neo.fullScreen = false;
Neo.uploaded = false;
Expand Down Expand Up @@ -1130,6 +1130,7 @@ Neo.getAbsoluteURL = function (board, url) {
};

Neo.submit = function (board, blob, thumbnail, thumbnail2) {

var url = Neo.getAbsoluteURL(board, Neo.config.url_save);
var headerString = Neo.str_header || "";

Expand Down Expand Up @@ -1320,22 +1321,20 @@ Neo.submit = function (board, blob, thumbnail, thumbnail2) {
);
});
};
if (Neo.config.neo_send_with_formdata == "true") {
if (pchFileNotAppended) {
if (
window.confirm(
Neo.translate(
"画像のみが送信されます。\nレイヤー情報は保持されません。"
)
)
) {
postData(url, formData);
} else {
console.log("中止しました。");
}
} else {
postData(url, formData);

if (Neo.config.neo_confirm_layer_info_notsaved && (!thumbnail2 || pchFileNotAppended)) {
const isConfirmed = window.confirm(
Neo.translate("レイヤー情報は保存されません。\n続行してよろしいですか?")
);

if (!isConfirmed) {
console.log("中止しました。");
return; // ユーザーが続行しない場合、処理を中断
}
}

if (Neo.config.neo_send_with_formdata == "true") {
postData(url, formData);
} else {
postData(url, body);
}
Expand Down Expand Up @@ -1578,8 +1577,8 @@ Neo.dictionary = {
"投稿に失敗。\nWAFの誤検知かもしれません。\nもう少し描いてみてください。":
"It may be a WAF false positive.\nTry to draw a little more.",
"ファイルが見当たりません。": "File not found",
"画像のみが送信されます。\nレイヤー情報は保持されません。":
"Only image will be sent.\nLayer information will not be retained.",
"レイヤー情報は保存されません。\n続行してよろしいですか?":
"Layer information will not be saved.\nIs that okay?",
},
enx: {
やり直し: "Redo",
Expand Down Expand Up @@ -1641,8 +1640,8 @@ Neo.dictionary = {
"投稿に失敗。\nWAFの誤検知かもしれません。\nもう少し描いてみてください。":
"It may be a WAF false positive.\nTry to draw a little more.",
"ファイルが見当たりません。": "File not found.",
"画像のみが送信されます。\nレイヤー情報は保持されません。":
"Only image will be sent.\nLayer information will not be retained.",
"レイヤー情報は保存されません。\n続行してよろしいですか?":
"Layer information will not be saved.\nIs that okay?",
},
es: {
やり直し: "Rehacer",
Expand Down Expand Up @@ -1704,8 +1703,8 @@ Neo.dictionary = {
"投稿に失敗。\nWAFの誤検知かもしれません。\nもう少し描いてみてください。":
"Puede ser un falso positivo de WAF.\nIntenta dibujar un poco más.",
"ファイルが見当たりません。": "Archivo no encontrado.",
"画像のみが送信されます。\nレイヤー情報は保持されません。":
"Sólo se enviará la imagen.\nNo se conservará la información de la capa.",
"レイヤー情報は保存されません。\n続行してよろしいですか?":
"La información de las capas no se guardará.\n¿Está bien?",
},
};

Expand Down
4 changes: 2 additions & 2 deletions potiboard5/potiboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

// POTI-board EVO
// バージョン :
const POTI_VER = 'v6.57.0';
const POTI_LOT = 'lot.20241209';
const POTI_VER = 'v6.57.1';
const POTI_LOT = 'lot.20241211';

/*
(C) 2018-2024 POTI改 POTI-board redevelopment team
Expand Down
1 change: 1 addition & 0 deletions potiboard5/templates/basic/paint.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ function GradSelC(){if(d.grad.view.checked){d=document.grad;l=ps.length;pe="";fo
<param name="neo_max_pch" value="{{$max_pch}}">
@endif
<param name="neo_send_with_formdata" value="true">
<param name="neo_confirm_layer_info_notsaved" value="true">
<param name="neo_confirm_unload" value="true">
<param name="neo_show_right_button" value="true">
@endif
Expand Down
1 change: 1 addition & 0 deletions potiboard5/templates/mono/mono_paint.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ function GradSelC(){if(d.grad.view.checked){d=document.grad;l=ps.length;pe="";fo
<param name="neo_max_pch" value="{{$max_pch}}">
@endif
<param name="neo_send_with_formdata" value="true">
<param name="neo_confirm_layer_info_notsaved" value="true">
<param name="neo_confirm_unload" value="true">
<param name="neo_show_right_button" value="true">
@else
Expand Down

0 comments on commit a78feed

Please sign in to comment.