It has all the explanation:
http://stackoverflow.com/questions/32645663/modalbox-bootstrap-working-in-a-nav-pill-but-doesnt-on-other

Thanks in advance