# HG changeset patch # User drewp@bigasterisk.com # Date 1402792431 0 # Node ID 487f0877b7c6b4aab0050f71d86f2efa553c5e18 # Parent c99096504c79ce24f6fbd3ae02c6f2bc8a6cf742 EE can now limit to showing just one song Ignore-this: 3cad996b470fd9fc2e56524eaf13f87d diff -r c99096504c79 -r 487f0877b7c6 light9/effecteval/index.coffee --- a/light9/effecteval/index.coffee Sun Jun 15 00:20:48 2014 +0000 +++ b/light9/effecteval/index.coffee Sun Jun 15 00:33:51 2014 +0000 @@ -9,6 +9,9 @@ event.preventDefault() dropped(uri, event.originalEvent.dataTransfer.getData('text/uri-list')) +model.focusSong = (song) -> + window.location.search = '?song=' + song.uri + dropped = (songTargetUri, dropUri) -> $.post('songEffects', {uri: songTargetUri, drop: dropUri}) @@ -24,7 +27,12 @@ do (e) -> e.deleteEffect = -> deleteEffect(e.uri) - model.songs(msg.songs) + + m = window.location.search.match(/song=(http[^&]+)/) + if m + model.songs((s for s in msg.songs when s.uri == m[1])) + else + model.songs(msg.songs) ko.applyBindings(model) diff -r c99096504c79 -r 487f0877b7c6 light9/effecteval/index.html --- a/light9/effecteval/index.html Sun Jun 15 00:20:48 2014 +0000 +++ b/light9/effecteval/index.html Sun Jun 15 00:33:51 2014 +0000 @@ -7,11 +7,12 @@
/stats
-

All effect instances

+

Effect instances

+
View all songs
-