Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding prettyPhoto gallery view #75

Open
djmassive opened this issue Jan 21, 2015 · 0 comments
Open

Adding prettyPhoto gallery view #75

djmassive opened this issue Jan 21, 2015 · 0 comments

Comments

@djmassive
Copy link

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;
    },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant