Download:
child 38:980db9d778bd
parent 36:07aedd01fe23
37:a8a87d02cf00
Anton Shestakov <av6@dwimlabs.net>, Sun, 08 Jul 2018 16:47:16 +0800
ui: single track music files need this when repeat is off

1 files changed, 3 insertions(+), 0 deletions(-) [+]
ui.js file | annotate | diff | comparison | revisions
--- a/ui.js Fri Jul 06 19:55:19 2018 +0800
+++ b/ui.js Sun Jul 08 16:47:16 2018 +0800
@@ -65,6 +65,9 @@
Backbone.View.prototype.remove.apply(this);
},
advance: function() {
+ if (this.model.tracks.length === 1) {
+ this.model.seek(0);
+ }
this.fastForward(null, {player: this.model, front: this});
},
makeOrder: function() {