webui: add downloads: focus fixed

This commit is contained in:
zeners 2016-03-26 23:36:02 +01:00
parent 922644f03e
commit 215402b50f

View File

@ -181,12 +181,17 @@ function cancelBtn(){
// paste links // paste links
function step1(){ function step1(){
rs.initControl = "txt"; m.initControl = "txtInput";
return [ return [
m("h3","step 1 / 5: paste retroshare-links:"), m("h3","step 1 / 5: paste retroshare-links:"),
m("textarea[id=txtInput]", { m("textarea[id=txtInput]", {
style: { style: {
height:"100%", height:"100%",
},
onkeydown: function(event){
if (event.keyCode == 13){
parseDownloads();
}
} }
}), }),
m("div.btn2", { m("div.btn2", {
@ -200,7 +205,6 @@ function step1(){
// parsing links // parsing links
function step2(){ function step2(){
rs.initControl = "txt";
return [ return [
m("h3","step 2 / 5: parsing input ..."), m("h3","step 2 / 5: parsing input ..."),
m("p", m("p",
@ -211,7 +215,6 @@ function step2(){
// parsing confirm // parsing confirm
function step3(){ function step3(){
rs.initControl = "txt";
return [ return [
m("h3","step 3 / 5: confirm-links:"), m("h3","step 3 / 5: confirm-links:"),
m("ul", m("ul",
@ -237,7 +240,6 @@ function step3(){
// adding links // adding links
function step4(){ function step4(){
rs.initControl = "txt";
return [ return [
m("h3","step 4 / 5: adding downloads:"), m("h3","step 4 / 5: adding downloads:"),
m("p", m("p",
@ -264,7 +266,6 @@ function step4(){
// show result // show result
function step5(){ function step5(){
rs.initControl = "txt";
return [ return [
m("h3","step 5 / 5: Result:"), m("h3","step 5 / 5: Result:"),
m("p", m("p",
@ -288,10 +289,7 @@ function step5(){
style:{ style:{
textAlign: "center", textAlign: "center",
}, },
onclick: function(){ onclick: cancel,
me.toResult=[];
refresh();
},
},"ok"), },"ok"),
] ]
} }