diff options
| author | “Ryder <“r@okfoc.us”> | 2016-04-07 19:23:55 -0400 |
|---|---|---|
| committer | “Ryder <“r@okfoc.us”> | 2016-04-07 19:23:55 -0400 |
| commit | c84966af9932fc9731a67e8b3b688fc024a50d74 (patch) | |
| tree | 2d8eea2cedde3067120ce572a267806f6caae500 /public/assets/js/lib/ProjectView.js | |
| parent | 8ecdf57a334d68417cf8ddfd7ac421f91bac980a (diff) | |
| parent | 4d1fd1f42458806c2bef055d20f300644ae14542 (diff) | |
Merge branch 'master' of https://github.com/okfocus/portfolio
Diffstat (limited to 'public/assets/js/lib/ProjectView.js')
| -rw-r--r-- | public/assets/js/lib/ProjectView.js | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/public/assets/js/lib/ProjectView.js b/public/assets/js/lib/ProjectView.js index 2bb0f32..7749908 100644 --- a/public/assets/js/lib/ProjectView.js +++ b/public/assets/js/lib/ProjectView.js @@ -117,18 +117,21 @@ var ProjectView = View.extend({ hide: function(){ addClassForPeriod( this.el, "hiding", app.navigation_delay, function(){ - this.$el.addClass("hidden") - this.$el.removeClass("active") - - this.$images.each(function(){ - $(this).css("background-image", "") - }) - this.$iframes.html("") - this.$videos.html("") - + this.reset() }.bind(this) ) }, + reset: function(){ + this.$el.addClass("hidden") + this.$el.removeClass("active") + + this.$images.each(function(){ + $(this).css("background-image", "") + }) + this.$iframes.html("") + this.$videos.html("") + }, + previous: function(e){ if (is_mobile) return; e.stopPropagation() |
