Bad value prettyPhoto for attribute rel on element a
  • i replaced "rel" to "data-gal" in html and javascript souce but it stopped functioning

    jquery.prettyPhoto.js :

    theRel = $(this).attr('data-gal');
    galleryRegExp = /\[(?:.*)\]/;
    isSet = (galleryRegExp.exec(theRel)) ? true : false;

    // Put the SRCs, TITLEs, ALTs into an array.
    pp_images = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('data-gal').indexOf(theRel) != -1) return $(n).attr('href'); }) : $.makeArray($(this).attr('href'));
    pp_titles = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('data-gal').indexOf(theRel) != -1) return ($(n).find('img').attr('alt')) ? $(n).find('img').attr('alt') : ""; }) : $.makeArray($(this).find('img').attr('alt'));
    pp_descriptions = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('data-gal').indexOf(theRel) != -1) return ($(n).attr('title')) ? $(n).attr('title') : ""; }) : $.makeArray($(this).attr('title'));

    html :

    <img width="200" height="200" src="images/thumb.jpg" class="wp-post-image" alt="thumb" />
    <h3>headline</h3>
    <p>description line</p>
    <span><a href="images/full.jpg" class="zoom-icon" title="title here" data-gal="prettyPhoto">View zoomed</a></span>


    where else i will make change then ?


Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter