This commit is contained in:
flaskfarm
2022-10-07 15:11:05 +09:00
parent cde69d4d8a
commit 863ca3058d
12 changed files with 125 additions and 133 deletions

View File

@@ -112,8 +112,8 @@ $("body").on('click', '#globalEditBtn', function(e) {
data: {},
dataType: "json",
success: function (ret) {
if (ret) {
window.location.href = '/flaskcode?open=' + file;
if (ret.ret) {
window.open('/flaskcode?open=' + file, ret.target);
} else {
notify('편집기 플러그인을 설치해야 합니다.', 'warning');
}
@@ -160,11 +160,11 @@ function shutdown_confirm() {
var select_local_file_modal_callback = null;
function selectLocalFile(title, init_path, func) {
function globalSelectLocalFile(title, init_path, func) {
_selectLocalFileModal(title, init_path, false, func);
}
function selectLocalFolder(title, init_path, func) {
function globalSelectLocalFolder(title, init_path, func) {
_selectLocalFileModal(title, init_path, true, func);
}