jackwanders/GalleryView

Adding prettyPhoto gallery view

Opened this issue · 0 comments

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;
    },