Skip to content

Commit

Permalink
Keep attribution visible
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Goodwin committed Jun 7, 2014
1 parent 2effbf8 commit 6fda90e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,11 @@ soundManager.setup({
url: 'soundmanagerv297a-20131201/swf/',
debugMode: false
});

Dig.FileView = Em.View.extend({
didInsertElement: function() {
Em.run.scheduleOnce('afterRender', this, function() {
this.$('.left-column').scrollToFixed({marginTop: 64});
});
}
});
2 changes: 2 additions & 0 deletions templates/file.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ <h2>
</div>
<div class="row">
<div class='col-md-3'>
<div class='left-column'>
<div class='well license attribution'>
<h6>Attribution</h6>
<p>
Expand Down Expand Up @@ -66,6 +67,7 @@ <h6>Attribution</h6>
class='btn info'><span class="glyphicon glyphicon-info-sign"></span> View on ccMixter</a>

<a href="http://ccmixter.org/share/{{unbound upload_id}}"><img src="http://ccmixter.org/ccskins/shared/images/share-link.gif" alt="Share"/></a>
</div>
</div><div class="col-md-6">
<div class='well description'>
{{#if user_avatar_url}}
Expand Down

0 comments on commit 6fda90e

Please sign in to comment.