From 2d235a4879719129139083308f39a0ed9fced20a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 8 Apr 2016 23:49:11 -0400 Subject: dont put iframes/videos in galleries if it isnt necessary --- public/assets/js/lib/ProjectView.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public/assets/js') diff --git a/public/assets/js/lib/ProjectView.js b/public/assets/js/lib/ProjectView.js index 7749908..a0e0055 100644 --- a/public/assets/js/lib/ProjectView.js +++ b/public/assets/js/lib/ProjectView.js @@ -27,6 +27,10 @@ var ProjectView = View.extend({ } } else { + // don't put iframes/videos in galleries if not necessary + if (this.$iframes.length || this.$videos.length) { + this.$images.remove() + } this.$(".mobile").remove() this.$(".desktop").removeClass("desktop") } -- cgit v1.2.3-70-g09d2