changed new code for style and made it usable for other non-email tags
This commit is contained in:
+6
-7
@@ -116,13 +116,12 @@
|
|||||||
return card;
|
return card;
|
||||||
}
|
}
|
||||||
|
|
||||||
// construct email params
|
// Construct a user discovery tag
|
||||||
function email(emailAddress) {
|
function to_tag(tagname, value) {
|
||||||
var tags = [];
|
if (tagname && value) {
|
||||||
if(emailAddress) {
|
return [tagname + ":" + value];
|
||||||
tags.push("email:" + emailAddress);
|
|
||||||
}
|
}
|
||||||
return tags
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* BEGIN Popup/dropdown menu */
|
/* BEGIN Popup/dropdown menu */
|
||||||
@@ -694,7 +693,7 @@
|
|||||||
this.state.password.trim(),
|
this.state.password.trim(),
|
||||||
vcard(this.state.fn, this.state.imageDataUrl),
|
vcard(this.state.fn, this.state.imageDataUrl),
|
||||||
null,
|
null,
|
||||||
email(this.state.email));
|
to_tag("email", this.state.email));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
render: function() {
|
render: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user