i2psnark: Expand section when param passed in

(prep for handler)
This commit is contained in:
zzz
2020-05-10 16:18:29 +00:00
parent 96a8aa9d0c
commit e99e15209a

View File

@ -2234,7 +2234,12 @@ public class I2PSnarkServlet extends BasicServlet {
"<form action=\"_post\" method=\"POST\">\n"); "<form action=\"_post\" method=\"POST\">\n");
writeHiddenInputs(out, req, "Add"); writeHiddenInputs(out, req, "Add");
out.write("<div class=\"addtorrentsection\">" + out.write("<div class=\"addtorrentsection\">" +
"<input class=\"toggle_input\" id=\"toggle_addtorrent\" type=\"checkbox\"><label class=\"toggleview\" for=\"toggle_addtorrent\">"); "<input class=\"toggle_input\" id=\"toggle_addtorrent\" type=\"checkbox\"");
if (newURL.length() > 0)
out.write(" checked=\"checked\">"); // force toggle open
else
out.write('>');
out.write("<label class=\"toggleview\" for=\"toggle_addtorrent\">");
out.write(toThemeImg("add")); out.write(toThemeImg("add"));
out.write(' '); out.write(' ');
out.write(_t("Add Torrent")); out.write(_t("Add Torrent"));