blob: a64da935eaea1b5d90d572074d01fea812a3bdc2 [file] [log] [blame]
var discovery_refresh = function() {
var code = '';
if ($('#discovery-openid1')[0].checked) {
code += $('#discovery-templates .openid1').html() + '\n';
if ($('#discovery-local-id')[0].checked) code += $('.openid1-local-id').html() + '\n';
}
if ($('#discovery-openid2')[0].checked) {
code += $('#discovery-templates .openid2').html() + '\n';
if ($('#discovery-local-id')[0].checked) code += $('.openid2-local-id').html() + '\n';
}
if (code == '') code = l.code;
$('#discovery-link-tags').html(code);
}
$(document).ready(function() {
$('.discovery-checkbox').click(discovery_refresh);
discovery_refresh();
});