diff options
| author | “Ryder <“r@okfoc.us”> | 2016-04-11 17:20:59 -0400 |
|---|---|---|
| committer | “Ryder <“r@okfoc.us”> | 2016-04-11 17:20:59 -0400 |
| commit | 65bb724701d53c7503c0fbe22c7b34f417bddfe3 (patch) | |
| tree | 4b433499b75eb630da1cdd2128589e6ec275117a /public/assets | |
| parent | 0f5dbce01511453b96be3665cdebdc77899307fb (diff) | |
| parent | 0a213a21b059cdc7eed826497a5c954fb9e26938 (diff) | |
Merge branch 'master' of https://github.com/okfocus/portfolio
Diffstat (limited to 'public/assets')
| -rw-r--r-- | public/assets/js/lib/ProjectView.js | 4 |
1 files changed, 4 insertions, 0 deletions
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") } |
