mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-22 09:38:18 +00:00
Fixed nav in now playing
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
className: "now-playing"
|
className: "now-playing"
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
|
"click #now-playing-wrapper": "openMix",
|
||||||
"click #now-playing-play": "doPlay",
|
"click #now-playing-play": "doPlay",
|
||||||
"click #now-playing-pause": "doPause"
|
"click #now-playing-pause": "doPause"
|
||||||
}
|
}
|
||||||
@@ -24,6 +25,9 @@
|
|||||||
@mixPlay()
|
@mixPlay()
|
||||||
true
|
true
|
||||||
|
|
||||||
|
openMix: ->
|
||||||
|
App.Router.navigate(@model.get("item_url"), true)
|
||||||
|
|
||||||
mixPause: (model) ->
|
mixPause: (model) ->
|
||||||
console.log "NowPlayingView: mixPause"
|
console.log "NowPlayingView: mixPause"
|
||||||
$('#now-playing-play', @el).show()
|
$('#now-playing-play', @el).show()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="profile-activity clearfix">
|
<div class="profile-activity clearfix" id="now-playing-wrapper">
|
||||||
<div>
|
<div>
|
||||||
<img class="pull-left" alt="Alex Doe's avatar" src="<%= mix_image %>">
|
<img class="pull-left" alt="Alex Doe's avatar" src="<%= mix_image %>">
|
||||||
<a class="user" href="#"><%= user_name %></a>
|
<a class="user" href="#"><%= user_name %></a>
|
||||||
|
|||||||
Reference in New Issue
Block a user