Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
fix #113
Browse files Browse the repository at this point in the history
  • Loading branch information
zimocode committed Sep 19, 2021
1 parent 044d0ed commit fec120f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@
"n_dialog":{
"message":"Show dialog box"
},
"n_duplicatetype":{
"message":"Open duplicated tab in background."
},
"script": {
"message": "Script"
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,9 @@
"n_dialog":{
"message":"显示对话框"
},
"n_duplicatetype":{
"message":"在后台打开复制的标签页。"
},
"script": {
"message": "运行脚本"
},
Expand Down
4 changes: 2 additions & 2 deletions change.log
Original file line number Diff line number Diff line change
@@ -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"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions js/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -265,7 +265,8 @@ let actionOptions={

n_closePin:false,
n_closeConfirm:true,
n_dialog:false
n_dialog:false,
n_duplicatetype:false
}
}

Expand Down
7 changes: 5 additions & 2 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -1658,9 +1658,12 @@ var sub={
var _target=sub.getConfValue("selects","n_tab"),
ids=sub.getId(_target);
for(var i=0;i<ids.length;i++){
chrome.tabs.duplicate(ids[i],function(tab){});
chrome.tabs.duplicate(ids[i],function(tab){
if(sub.getConfValue("checks","n_duplicatetype")){
chrome.tabs.update(sub.curTab.id,{highlighted:true});
}
});
}
//chrome.tabs.duplicate(sub.curTab.id,function(tab){})
},
copytabele:function(){
var theFunction=function(){
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"minimum_chrome_version": "22",
"name": "smartUp Gestures(Beta)",
"short_name":"smartUp",
"version": "6.7.1231.1113",
"version": "6.7.1231.1114",
"description": "__MSG_ext_des__",
"default_locale": "en",
"author":"zimo",
Expand Down

0 comments on commit fec120f

Please sign in to comment.