팝업을 클릭하지 않으면 닫고 싶지 않은 팝업이 나타납니다.하지만 클릭 할 때마다 닫힙니다. 당신의 클래스와 사업부 내부를 클릭 할 때 그것은 닫지한다 "만들 앨범 컨테이너를"jQuery 클릭 이벤트 중지 전파가 작동하지 않습니까?
$(document).ready(function() {
////posts menu
$(".container").on("contextmenu", ".photos-bottom .albums li", function(e) {
var id = $(this).attr("id");
e.stopPropagation();
e.preventDefault;
$('.create-album-container').hide();
$('.photos-bottom .albums li#'+id+' .create-album-container').show();
return false;
});
$("body").click(function (event) {
$('.create-album-container').hide();
});
});
'e.preventDefault'는 반드시 –