Skip to content

Adding prettyPhoto gallery view #75

Description

@djmassive

According to this push:
https://github.com/jackwanders/GalleryView/pull/26/files

Please follow my instructions to make prettyPhoto gallery with all images.
You must edit file: jquery.galleryview-3.0-dev.js find line: 911 and add code:

        // Added to provide clickable link support for panels
        updateClickable: function(i) {
        var self = this,
            dom = this.dom;

                href = self.gvImages[i].href;

                if(href != '')
                {
                    var action;

                    if (this.opts.link_newwindow){
                        action = function(){
                            window.open(href, "_blank");
                        };
                    }
                    else {
                        action = function(){
                            var l = self.gvImages;
                            var arr = [];

                            for(ia = 0; ia < l.length; ia++) {
                                arr.push(self.gvImages[ia].href);
                            }

                            $.prettyPhoto.open(arr,'','');
                        };    
                    }                         

                    dom.gv_panelWrap.delegate('.gv_panel','click.galleryview', action);
                }

                return false;
    },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions