Would anyone be able to help me figure out why content is being called
twice and how I would prevent that from happening ?
$('.js-tooltip').popover({
trigger:'click',
placement:'top',
html:true,
title: function(){
},
content:function(){
var link = $(this).attr('data-link'), htmlData = "";
console.log("link is : " + link);
// if(!$(this).data("loaded")){
if ( link != undefined ) {
$.ajax({
url: link,
cache: true,
async: false,
dataType: "html",
success: function(hdata) {
console.log('done loading data ..' );
$(this).data("loaded",true);
return hdata ;
}
});
}
// }
// window.h = htmlData;
return "testing " ;
}
});
--
You received this message because you are subscribed to the Google Groups
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.