diff options
| author | “Ryder <“r@okfoc.us”> | 2016-03-30 16:16:26 -0400 |
|---|---|---|
| committer | “Ryder <“r@okfoc.us”> | 2016-03-30 16:16:26 -0400 |
| commit | f6aedefed2663cdf6af8d7f599f24c6929064516 (patch) | |
| tree | 9b383f614fe8129e423176ee2871ebabe0986deb /public | |
| parent | c3ac7977fa5921a43f81fb34be08d0d2e8eea5d8 (diff) | |
| parent | 3cf47d8edc92dc005a26773816545963e21051b6 (diff) | |
Merge branch 'master' of https://github.com/okfocus/portfolio
Diffstat (limited to 'public')
| -rw-r--r-- | public/assets/js/lib/NavView.js | 6 | ||||
| -rw-r--r-- | public/assets/js/lib/ProjectView.js | 2 | ||||
| -rw-r--r-- | public/assets/ok.css | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/public/assets/js/lib/NavView.js b/public/assets/js/lib/NavView.js index a9fba25..b2fe341 100644 --- a/public/assets/js/lib/NavView.js +++ b/public/assets/js/lib/NavView.js @@ -49,7 +49,6 @@ var NavView = View.extend({ return } - console.log(view.page_number, view.project_id) direction = direction || "down" addClassForPeriod( document.body, direction, app.navigation_delay ) @@ -59,4 +58,9 @@ var NavView = View.extend({ app.view = view }, + setActive: function(id){ + this.$(".active").removeClass("active") + this.$("[data-id=" + id + "]").addClass("active") + }, + })
\ No newline at end of file diff --git a/public/assets/js/lib/ProjectView.js b/public/assets/js/lib/ProjectView.js index 061dcee..6ae581e 100644 --- a/public/assets/js/lib/ProjectView.js +++ b/public/assets/js/lib/ProjectView.js @@ -44,6 +44,8 @@ var ProjectView = View.extend({ else { app.router.pushState("/project/" + this.project_id) } + + app.nav.setActive( this.project_id ) this.showing = true addClassForPeriod( this.el, "showing", app.navigation_delay, function(){ diff --git a/public/assets/ok.css b/public/assets/ok.css index eb5dbba..221dd56 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -531,7 +531,7 @@ button.previous { } .resizing .top { - background: url(img/tomato20dancing.gif)center; + background: url(img/tomato20dancing.gif) center !important; } .bottom { |
