jQuery popover wont load second time -


i using popover on page: https://github.com/klaas4/jquery.popover have multiple instances of popover different content , triggers. javascript says should happen when press link

$(".addworker").popover({     title: "worker",     content: "laddar..." });  $(".addworker").click(function (event) {     event.preventdefault();     $(this).popover(         'ajax',         "/jobs/addworker?jobid=" + $(this).attr("id")     ).popover('show'); });  $(".markasfinished").popover({     title: "finished",     content: "laddar..." });  $(".markasfinished").click(function (e) {     e.preventdefault();     $(this).popover( 

uncaught typeerror: object [object object] has no method 'popover' (repeated 3 times) 'ajax', "/jobs/markasfinished?jobid=" + $(this).parent().parent().attr("data-jobid") + "&userid=" + $(this).parent().parent().attr("data-userid") ).popover('show'); });

now works great first time click link, , popover shows up. content loaded , presentet within popover. when want open popover (presses link), get's stuck @ "loading" , no content loaded. same link works great if refresh page. chrome developer tools tells me following:

uncaught typeerror: object [object object] has no method 'popover'  

i have no idea how solve this, appreciated.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -