#BLOCK("NewLineReplace","") #LOCAL("RecommendedImageSizeTranslation", "{RecommendedImageSize[js]}") function(evt) { require([ 'jquery', 'de_epages/product/ui/variationslideshow-unity', 'jquery/metaparse', '$ready!' ], function ($, ep) { ep(evt.target).parent().productUiVariationslideshowUnity({ items: function() { return $('input[name=ListObjectID]:checked'); }, dndUploader: { allowCropping: false, #IF(#DEFINED(#WebInterfaceConf.MAXCONTENTLENGTH))maxFileSize: #WebInterfaceConf.MAXCONTENTLENGTH,#ENDIF #IF(#DEFINED(#Exist)) exist: #Exist[0], order: #Order[0], #ENDIF }, action: 'UnityMBO-SetVariationSlideshow', objectID: #ObjectID, productName: '#Name[html]', recommendedSize: '#RecommendedImageSizeTranslation[js] #UnityRecommendedImageSizes("Product_Image")' #IF(#DEFINED(#SlideShowOrder)), slideshowArrays: JSON.parse('#SlideShowOrder[0]')#ENDIF }); evt.target.remove(); }); } #ENDLOCAL #ENDBLOCK