Only one image

Permalink Browser Info Environment
I've got a situation where occasionally the client will only have one image in this block. But the code requires at least two. I've worked around it by adding the single image twice, but I'm wondering if there's a better workaround. Right now, there's a slight flash as the image fades between itself and... itself.

Thanks

Type: Discussion
Status: New
Metaglyphics
View Replies:
MissMarvels replied on at Permalink Reply
MissMarvels
It is ment to behave as Gallery and for that you do need at least 2
images, but the validation is in auto.js.

You could try to just change the validation (qIDs.length<2) to 1...

Regards,
Casper

validate:function(){
         var failed=0;
         if ($("#newImg select[name=type]").val() == 'FILESET')
         {
             if ($("#ccm-CarrouselBannerBlock-fsRow 
input[name=fsID]").val() <= 0) {
                 alert(ccm_t('choose-fileset'));
                 $('#ccm-CarrouselBannerBlock-AddImg').focus();
                 failed=1;
             }
         } else {
             qIDs=this.serialize();
             if( qIDs.length<2 ){
                 alert(ccm_t('choose-min-2'));
                 $('#ccm-CarrouselBannerBlock-AddImg').focus();
BHWW replied on at Permalink Reply
BHWW
Thanks this was a help to me too. However, any idea how the z-indexing works?

I have a dropdown menu, when there are 2 or more images the menu floats over the top fine, but if there is only 1 image, the menu goes behind the text?

Cheers

B

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.