|
|
@@ -551,7 +551,6 @@ if(goods4.length>0){
|
|
|
html += '<div class="cont_head">';
|
|
|
html += '<div>';
|
|
|
html += ' <h4>';
|
|
|
- console.log(template[i].linkOpenGb );
|
|
|
if (template[i].linkUrl != null && template[i].linkUrl != '') { /* 링크 변경 예정 */
|
|
|
if (template[i].linkOpenGb == "M") { //본창
|
|
|
html += ' <a href="http://'+template[i].linkUrl+'" target="_self">'+template[i].title+' <i class="ico_arrow"></i></a>';
|
|
|
@@ -798,7 +797,7 @@ var fnSearchCallback = function (result) {
|
|
|
html += ' <span class="date">'+item.entryDt+'</span>';
|
|
|
html += ' </div>';
|
|
|
html += ' <div class="cmt_cont">';
|
|
|
- html += ' <div class="img_wrap clear">';
|
|
|
+ html += ' <div class="img_wrap clear" onclick="fnImgAttach(this)">';
|
|
|
if (result.replyAttachList.length>0) {
|
|
|
for (var i = 0; i < result.replyAttachList.length; i++) {
|
|
|
if(result.replyAttachList[i].planEntrySq == item.planEntrySq){
|
|
|
@@ -930,12 +929,47 @@ var fnReplySave = function() {
|
|
|
gagajf.ajaxJsonSubmit('/planning/reply/save', jsonData,function() {
|
|
|
ajaxReplyList();
|
|
|
$('#replyText').val('');
|
|
|
+ $('.pics').remove();
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
|
|
|
+var fnImgAttach = function (obj) {
|
|
|
+ $("#thumbImgPop .swiper-wrapper").empty();
|
|
|
+ //var popSlideIndex = $(obj).find('span').length -1;
|
|
|
+ var popSlideIndex = 0;
|
|
|
+ contactPopSwiper.slideTo(popSlideIndex);
|
|
|
+ contactPopSwiper.update();
|
|
|
+
|
|
|
+ var contactImglength = $(obj).find('span').length;
|
|
|
+ var popImgHtml = "";
|
|
|
+ for (i = 0; i < contactImglength; i++) {
|
|
|
+
|
|
|
+ var contactImgSrc =$(obj).find('img').eq(i).attr('src');
|
|
|
+ popImgHtml += "<div class='swiper-slide'><div class='pop_img' style='background-image:url("+ contactImgSrc +")'></div></div>";
|
|
|
+ }
|
|
|
+
|
|
|
+ $("#thumbImgPop .swiper-wrapper").append(popImgHtml);
|
|
|
+ $('#thumbImgPop').modal("show");
|
|
|
+
|
|
|
+ return false;
|
|
|
+}
|
|
|
+
|
|
|
+/* SLIDE - 댓글 이미지 팝업 */
|
|
|
+var contactPopSwiper = new Swiper('.thumb_img_pop .swiper-container', {
|
|
|
+ navigation: {
|
|
|
+ nextEl: '.thumb_img_pop .swiper-button-next',
|
|
|
+ prevEl: '.thumb_img_pop .swiper-button-prev',
|
|
|
+ },
|
|
|
+ pagination: {
|
|
|
+ el: '.thumb_img_pop .swiper-pagination',
|
|
|
+ clickable: true,
|
|
|
+ },
|
|
|
+ observer:true,
|
|
|
+ observeParents: true,
|
|
|
+});
|
|
|
|
|
|
|
|
|
$(document).ready( function() {
|
|
|
@@ -1066,6 +1100,7 @@ $(document).ready( function() {
|
|
|
$('#fileAdd').removeAttr("disabled");
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
|
|
|
//댓글 작성시 글자 카운트
|
|
|
$('.cmt_ans').keyup(function (e){
|
|
|
@@ -1078,42 +1113,6 @@ $(document).ready( function() {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- //팝업 - 댓글 이미지 슬라이드
|
|
|
- $(document).on('click','.cmt_cont .img_wrap .pics',function(e){
|
|
|
- $("#thumbImgPop .swiper-wrapper").empty();
|
|
|
- var popSlideIndex = $(this).index();
|
|
|
- contactPopSwiper.slideTo(popSlideIndex);
|
|
|
- contactPopSwiper.update();
|
|
|
-
|
|
|
- var contactImglength = $('.cmt_cont .img_wrap .pics').length;
|
|
|
- var popImgHtml = "";
|
|
|
- for (i = 1; i <= contactImglength; i++) {
|
|
|
- var contactImg = $(this).find('img');
|
|
|
- var contactImgSrc = $('.cmt_cont .img_wrap .pics:nth-child('+i+') img').attr('src');
|
|
|
- popImgHtml += "<div class='swiper-slide'><div class='pop_img' style='background-image:url("+ contactImgSrc +")'></div></div>";
|
|
|
- }
|
|
|
-
|
|
|
- $("#thumbImgPop .swiper-wrapper").append(popImgHtml);
|
|
|
- $('#thumbImgPop').modal("show");
|
|
|
-
|
|
|
- return false;
|
|
|
- });
|
|
|
-
|
|
|
- /* SLIDE - 댓글 이미지 팝업 */
|
|
|
- var contactPopSwiper = new Swiper('.thumb_img_pop .swiper-container', {
|
|
|
- navigation: {
|
|
|
- nextEl: '.thumb_img_pop .swiper-button-next',
|
|
|
- prevEl: '.thumb_img_pop .swiper-button-prev',
|
|
|
- },
|
|
|
- pagination: {
|
|
|
- el: '.thumb_img_pop .swiper-pagination',
|
|
|
- clickable: true,
|
|
|
- },
|
|
|
- observer:true,
|
|
|
- observeParents: true,
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
|
|
|
});
|
|
|
</script>
|