975
edits
No edit summary |
|||
| Line 42: | Line 42: | ||
Since this probably won't be used for most sites, it's easiest to do it this way: | Since this probably won't be used for most sites, it's easiest to do it this way: | ||
<script type="text/javascript"> | |||
$("img.persona").click(function(event) { | $("img.persona").click(function(event) { | ||
dispatchPersonaEvent('SelectPersona', event.currentTarget); | dispatchPersonaEvent('SelectPersona', event.currentTarget); | ||
return false; | return false; | ||
}); | }); | ||
</script> | |||
If you need detection if the user has personas installed, etc, check $.fn.personasButton in http://www.getpersonas.com/static/js/script.js | If you need detection if the user has personas installed, etc, check $.fn.personasButton in http://www.getpersonas.com/static/js/script.js | ||
edits