Skip to content

Commit

Permalink
Added ligtbox JS and page scan to slideshow viz
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Mar 1, 2016
1 parent 51fd196 commit 3ce301b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fabrik_visualization/slideshow/slideshow-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions plugins/fabrik_visualization/slideshow/slideshow.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,19 @@ var FbSlideshowViz = new Class({
this.slideshow = new Slideshow.Fold(this.options.html_id, this.options.slideshow_data, opts);
break;
}

this.mediaScan();
},

mediaScan: function () {
if (typeof(Slimbox) !== 'undefined') {
Slimbox.scanPage();
}
if (typeof(Lightbox) !== 'undefined') {
Lightbox.init();
}
if (typeof(Mediabox) !== 'undefined') {
Mediabox.scanPage();
}
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public function display($tpl = 'default')
$srcs[] = 'plugins/fabrik_visualization/slideshow/slideshow.js';
}

FabrikHelperHTML::slimbox();
FabrikHelperHTML::iniRequireJs($model->getShim());
FabrikHelperHTML::script($srcs, $this->js);

Expand Down

0 comments on commit 3ce301b

Please sign in to comment.