Skip to content

Commit

Permalink
Merge pull request #49 from nasonfish/master
Browse files Browse the repository at this point in the history
connect.js: clarify the connect window with an abbr element about what logging into services means
  • Loading branch information
kaniini committed Nov 2, 2015
2 parents 831483f + 45ec66e commit b24f4a5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions js/ui/panes/connect.js
Expand Up @@ -203,7 +203,10 @@ qwebirc.ui.Panes.Connect.pclass = new Class({

var d1 = new Element("td");
if(label)
d1.set("text", label);
if($type(label) == "element")
d1.appendChild(label)
else
d1.set("text", label);
r.appendChild(d1);

var d2 = new Element("td");
Expand All @@ -226,7 +229,18 @@ qwebirc.ui.Panes.Connect.pclass = new Class({
var srvbutton = new Element("input");
srvbutton.set("type", "checkbox");
srvbutton.set("checked", false);
createRow("Login to Services:", srvbutton);
var loginLabel = new Element("div");
var loginText = new Element("span");
loginText.set("text", "Login to ");
loginLabel.appendChild(loginText);
var loginAbbr = new Element("abbr");
loginAbbr.set("text", "Services");
loginAbbr.set("title", "If you've previously registered for a services account, you may log in here.");
loginLabel.appendChild(loginAbbr);
var loginPrompt = new Element("span");
loginPrompt.set("text", ":");
loginLabel.appendChild(loginPrompt);
createRow(loginLabel, srvbutton);

var user = new Element("input");
var userRow = createRow("Username:", user, {})[0];
Expand Down

0 comments on commit b24f4a5

Please sign in to comment.