Нажимаем первую картинку. вторая не закрылась. Почему?
$(document).on("click", ".tab-image-detalize", function () {
$(".tab-image-detalize").popover("hide");
if ($(this).attr("data-isopen") === "true"){
$(this).attr("data-isopen", "false");
$(this).popover("hide");
return;
}
$(".tab-image-detalize").attr("data-isopen", "false");
$(this).attr("data-isopen", "true");
$(this).popover("show");
});
https://jsfiddle.net/5demsdL8/
https://jsfiddle.net/5demsdL8/1/
$(document).ready(function () {
$(document).on("click", ".tab-image-detalize", function () {
$(this).popover("show");
});
$('.tab-image-detalize').on("show.bs.popover", function () {
$(".tab-image-detalize").not($(this)).each(function(){$(this).popover("hide");});
});
});
Продвижение своими сайтами как стратегия роста и независимости