FOP2 Chrome Extension doesn't work with clickable callto:
-
Hi,
My particular CRM links to numbers automatically by inserting a link (normal <a> tag) to the target callto:phone#. For example:
<a href="callto:555-555-1212">link</a>This would make sense to be clickable in Chrome, but instead it fails to recognize it as a number.
What would it take to register the click-handler with the extension? It wouldn't happen to be open-source somewhere so I can fix it, would it?
Thanks,
Daniel Jabbour
@bitgangsta -
-
I was able to achieve this! I modified the extension to do so. In the file content_script.js I added the following code to execute right before the page is parsed:
$('a[href*="callto"]').each( function() { var link = $(this), newUrl = link.attr('href').replace(/^callto:/,'sip:'), phoneNumber = newUrl.replace(/sip:/, ''); link.attr('href', newUrl); link.attr('rel', phoneNumber); link.addClass('fop2-click-to-call'); });It would be great if you can add this to the extension so I don't have to modify it every time I update. But if not, it's fine too!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login