diff --git a/src/tr-web-control/i18n/en.json b/src/tr-web-control/i18n/en.json index 757a77d..b7b2e8f 100644 --- a/src/tr-web-control/i18n/en.json +++ b/src/tr-web-control/i18n/en.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Automatically matches data directory" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigation", diff --git a/src/tr-web-control/i18n/es.json b/src/tr-web-control/i18n/es.json index 2a74721..da165df 100644 --- a/src/tr-web-control/i18n/es.json +++ b/src/tr-web-control/i18n/es.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Elegir automáticamente directorio de datos" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navegación", diff --git a/src/tr-web-control/i18n/fr.json b/src/tr-web-control/i18n/fr.json index df67d11..1c32c32 100644 --- a/src/tr-web-control/i18n/fr.json +++ b/src/tr-web-control/i18n/fr.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Correspondance auto des dossiers de données" }, - "setLabels": "Personnaliser les étiquettes" + "setLabels": "Personnaliser les étiquettes", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigation", diff --git a/src/tr-web-control/i18n/hu.json b/src/tr-web-control/i18n/hu.json index 3ac67f0..d25a4d1 100644 --- a/src/tr-web-control/i18n/hu.json +++ b/src/tr-web-control/i18n/hu.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Könyvtárak automatikus felismerése" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigáció", diff --git a/src/tr-web-control/i18n/it.json b/src/tr-web-control/i18n/it.json index 0b0db08..052373c 100644 --- a/src/tr-web-control/i18n/it.json +++ b/src/tr-web-control/i18n/it.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Associa automaticamente cartella dati" }, - "setLabels": "Imposta Etichette Utente" + "setLabels": "Imposta Etichette Utente", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigazione", diff --git a/src/tr-web-control/i18n/ko.json b/src/tr-web-control/i18n/ko.json index 110fde9..75f0905 100644 --- a/src/tr-web-control/i18n/ko.json +++ b/src/tr-web-control/i18n/ko.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "자동으로 데이터 폴더 일치시키기" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "안내", diff --git a/src/tr-web-control/i18n/nl.json b/src/tr-web-control/i18n/nl.json index b98fc75..8eb0804 100644 --- a/src/tr-web-control/i18n/nl.json +++ b/src/tr-web-control/i18n/nl.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Automatically matches data directory" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigatie", diff --git a/src/tr-web-control/i18n/pl.json b/src/tr-web-control/i18n/pl.json index f67ce44..a1667a2 100644 --- a/src/tr-web-control/i18n/pl.json +++ b/src/tr-web-control/i18n/pl.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Automatyczne dopasowanie katalogu" }, - "setLabels": "Ustaw własne etykiety" + "setLabels": "Ustaw własne etykiety", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Nawigacja", diff --git a/src/tr-web-control/i18n/pt_BR.json b/src/tr-web-control/i18n/pt_BR.json index 23052b6..f2f9c09 100644 --- a/src/tr-web-control/i18n/pt_BR.json +++ b/src/tr-web-control/i18n/pt_BR.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Combinar automaticamente diretório de dados" }, - "setLabels": "Definir Rótulos do Usuário" + "setLabels": "Definir Rótulos do Usuário", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navegação", diff --git a/src/tr-web-control/i18n/pt_PT.json b/src/tr-web-control/i18n/pt_PT.json index a595e5f..eaffb94 100644 --- a/src/tr-web-control/i18n/pt_PT.json +++ b/src/tr-web-control/i18n/pt_PT.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Combinar automaticamente o diretório de dados" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navegação", diff --git a/src/tr-web-control/i18n/ro.json b/src/tr-web-control/i18n/ro.json index c3411f9..cf060de 100644 --- a/src/tr-web-control/i18n/ro.json +++ b/src/tr-web-control/i18n/ro.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Automatically matches data directory" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigare", diff --git a/src/tr-web-control/i18n/ru.json b/src/tr-web-control/i18n/ru.json index 4d22fed..e05a07b 100644 --- a/src/tr-web-control/i18n/ru.json +++ b/src/tr-web-control/i18n/ru.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Автосопоставление путей" }, - "setLabels": "Присвоить метки" + "setLabels": "Присвоить метки", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Навигация", diff --git a/src/tr-web-control/i18n/uk.json b/src/tr-web-control/i18n/uk.json index 2ea766c..0cd1a25 100644 --- a/src/tr-web-control/i18n/uk.json +++ b/src/tr-web-control/i18n/uk.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Авто-зіставлення шляхів" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Навігація", diff --git a/src/tr-web-control/i18n/zh_CN.json b/src/tr-web-control/i18n/zh_CN.json index e894467..add9b1a 100644 --- a/src/tr-web-control/i18n/zh_CN.json +++ b/src/tr-web-control/i18n/zh_CN.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "自动匹配数据目录" }, - "setLabels": "设置用户标签" + "setLabels": "设置用户标签", + "copyMagnetLink": "复制磁力链接到剪切板" }, "title": { "left": "导航", diff --git a/src/tr-web-control/i18n/zh_TW.json b/src/tr-web-control/i18n/zh_TW.json index 7735155..1d56ce6 100644 --- a/src/tr-web-control/i18n/zh_TW.json +++ b/src/tr-web-control/i18n/zh_TW.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "自動配對資料夾" }, - "setLabels": "設置使用者標籤" + "setLabels": "設置使用者標籤", + "copyMagnetLink": "复制磁力链接到剪切板" }, "title": { "left": "分類資料夾", diff --git a/src/tr-web-control/script/min/system.min.js b/src/tr-web-control/script/min/system.min.js index a3c7d69..6db06c2 100644 --- a/src/tr-web-control/script/min/system.min.js +++ b/src/tr-web-control/script/min/system.min.js @@ -28,23 +28,24 @@ pageSize:system.config.pageSize,pageList:system.config.pageList,idField:"id",fit c);system.getTorrentInfos(j.id);c=i},onUnselect:function(){system.currentTorrentId=0;c=-1},onBeforeLoad:function(){system.currentTorrentId=0},onSortColumn:function(i,j){var k=system.control.torrentlist.datagrid("getData").originalRows.sort(arrayObjectSort(i,j));system.control.torrentlist.datagrid("loadData",k);system.resetTorrentListFieldsUserConfig(system.control.torrentlist.datagrid("options").columns[0]);system.userConfig.torrentList.sortName=i;system.userConfig.torrentList.sortOrder=j;system.saveUserConfig()}, onRowContextMenu:function(i,j){system.config.simpleCheckMode&&system.control.torrentlist.datagrid("uncheckAll");system.checkedRows.length==0&&system.control.torrentlist.datagrid("checkRow",j);i.preventDefault();system.showContextMenu("torrent-list",i)},onHeadDrop:function(){system.resetTorrentListFieldsUserConfig(system.control.torrentlist.datagrid("options").columns[0]);system.saveUserConfig()},onResizeColumn:function(){system.resetTorrentListFieldsUserConfig(system.control.torrentlist.datagrid("options").columns[0]); system.saveUserConfig()},onHeaderContextMenu:function(i){i.preventDefault();b||a();b.menu("show",{left:i.pageX,top:i.pageY})}})},"json");this.control.torrentlist.refresh=function(){system.control.torrentlist.datagrid("getPager").find(".pagination-load").click()}},resetTorrentListFieldsUserConfig:function(a){var b={};$.each(this.userConfig.torrentList.fields,function(c,d){b[d.field]=d});this.userConfig.torrentList.fields=[];$.each(a,function(c,d){var f=$.extend({},b[d.field]);f.width=d.width;f.hidden= -d.hidden;system.userConfig.torrentList.fields.push(f)})},showContextMenu:function(a,b){var c=this.contextMenus[a];if(c)c.empty();else{c=$("
").attr("class","easyui-menu").css({"min-width":"180px"}).appendTo(this.panel.main);this.contextMenus[a]=c;c.menu()}var d=null;switch(a){case "torrent-list":d=["start","pause","-","rename","remove","recheck","-","morepeers","changeDownloadDir","copyPath","-","menu-queue-move-top","menu-queue-move-up","menu-queue-move-down","menu-queue-move-bottom"];if(this.config.nav.labels){d.push("-"); -d.push("setLabels")}var f=this.panel.toolbar,e;for(e in d){var g=d[e];if(g=="-")$("").appendTo(c);else{var h=f.find("#toolbar_"+g);if(h.length>0)c.menu("appendItem",{text:h.attr("title"),id:g,iconCls:h.linkbutton("options").iconCls,disabled:h.linkbutton("options").disabled,onclick:function(){system.panel.toolbar.find("#toolbar_"+$(this).attr("id")).click()}});else{h=$("#"+g);if(h.length>0)c.menu("appendItem",{text:h.attr("title"),id:g,iconCls:h.attr("id").replace("menu-queue-move", -"iconfont tr-icon"),disabled:f.find("#toolbar_queue").linkbutton("options").disabled,onclick:function(){$("#"+$(this).attr("id")).click()}});else(h=this.getContentMenuWithKey(g))&&c.menu("appendItem",h)}h=null}}d=$("#copyPath",c);d.attr({"data-clipboard-action":"copy","data-clipboard-target":"#clipboard-source"});new ClipboardJS(d.get(0))}c.menu("show",{left:b.pageX,top:b.pageY});d=c=null},getContentMenuWithKey:function(a){switch(a){case "setLabels":return{id:"setLabels",text:system.lang.menus.setLabels, -iconCls:"iconfont tr-icon-labels",disabled:this.checkedRows.length==0,onclick:function(){var b=system.checkedRows,c=[],d;for(d in b)c.push(b[d].hashString);c.length!=0&&system.openDialogFromTemplate({id:"dialog-torrent-setLabels",options:{title:system.lang.dialog["torrent-setLabels"].title,width:520,height:200},datas:{hashs:c}})}}}},formetTorrentLabels:function(a,b){var c=$("
");if(a){if(typeof a=="string")a=a.split(",");for(var d=0;d").html(f.name).css({"background-color":f.color,color:getGrayLevel(f.color)>0.5?"#000":"#fff"}).appendTo(c)}}d=$("