전환 시 '빈칸' 보정, 설명 추가

This commit is contained in:
Hide_D committed 2018-09-24 04:23:47 +09:00
1 parent 34083c1798
commit 5400eb0e32
2 files changed
+9 -4

No files matched your search

+7 -1
View File
@@ -161,7 +161,13 @@ function activeFlip($obj){
function activeFlipItem($img){
var imageList = [];
imageList.push($img.attr('src'));
imageList = imageList.concat($img.data('flip').split(','));
$.each($img.data('flip').split(','), function(idx, value){
var value = $.trim(value);
if(!value){
return true;
}
imageList.push(value);
});
if(imageList.length <= 1){
return;
}