From fec120fb64d7495d79d3b6c9f1c9d78644b9bb18 Mon Sep 17 00:00:00 2001 From: zimocode Date: Sun, 19 Sep 2021 17:14:50 +0800 Subject: [PATCH] fix #113 --- _locales/en/messages.json | 3 +++ _locales/zh_CN/messages.json | 3 +++ change.log | 4 ++-- js/actions.js | 5 +++-- js/background.js | 7 +++++-- manifest.json | 2 +- 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index db924d2..118c8bb 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -524,6 +524,9 @@ "n_dialog":{ "message":"Show dialog box" }, + "n_duplicatetype":{ + "message":"Open duplicated tab in background." + }, "script": { "message": "Script" }, diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index 0b1373e..133ae43 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -521,6 +521,9 @@ "n_dialog":{ "message":"显示对话框" }, + "n_duplicatetype":{ + "message":"在后台打开复制的标签页。" + }, "script": { "message": "运行脚本" }, diff --git a/change.log b/change.log index bfb6ad9..04d00cb 100644 --- a/change.log +++ b/change.log @@ -1,12 +1,12 @@ { "log": [ { - "ver":"6.7.1231.1113", + "ver":"6.7.1231.1114", "date":"2021.09.19", "content":[ "new: add new option open type - current window", "improve: Support Developer", - "fix bugs: issues@github: #141, #154" + "fix bugs: issues@github: #141, #154, #113" ] }, { diff --git a/js/actions.js b/js/actions.js index ae52e6a..85786ca 100644 --- a/js/actions.js +++ b/js/actions.js @@ -31,7 +31,7 @@ let actions={ {name:"move",selects:["n_position_lrhl"]}, {name:"detach",selects:["n_tab"]},//movetowin {name:"pin",selects:["n_tab"]}, - {name:"duplicate",selects:["n_tab"]}, + {name:"duplicate",selects:["n_tab"],checks:["n_duplicatetype"]}, {name:"copytabele",selects:["n_tab_single","n_copytabele_content"]} ], [//group window @@ -265,7 +265,8 @@ let actionOptions={ n_closePin:false, n_closeConfirm:true, - n_dialog:false + n_dialog:false, + n_duplicatetype:false } } diff --git a/js/background.js b/js/background.js index 0fbd46e..7a11320 100644 --- a/js/background.js +++ b/js/background.js @@ -1658,9 +1658,12 @@ var sub={ var _target=sub.getConfValue("selects","n_tab"), ids=sub.getId(_target); for(var i=0;i