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

This commit is contained in:
2018-09-24 04:23:47 +09:00
parent 422b3be0c5
commit 8bf1ed33dc
2 changed files with 9 additions and 4 deletions
+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;
}