Reputation: 777
i'm now developping a crm application that allow to user to make voip call in dashbord i have a probleme that a link should open me a bootstrap modal and make call using xlite softpohone . to make call
<a href="callto:XXXXXX">XXXXXX</a>
to open modal
<a id="start" data-toggle="modal" href="#static" onclick="start();">
<font color="#39d179">
<span class='icon icon-call-end'></span>
</font>
</a>
Can anyone give me solution how to slove this problem to make a link that open softphone using callto and open the modal in the same time
Upvotes: 0
Views: 426
Reputation: 7156
You have two options:
Either combine both, and move the modal selector to data-target
attribute instead of href
<a href="callto:XXXXXX" id="start" data-toggle="modal" data-target="#static"
onclick="start();">
<font color="#39d179">
<span class='icon icon-call-end'></span>
</font>
</a>
or programatically open the modal :
$(document).on('click', '#start', function(){
$('#static').modal('open');
start();
});
Hope it helps.
Upvotes: 1