]> git.parisson.com Git - telemeta.git/commitdiff
Merge pull request #118 from ThomasBalastegui/dev
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 2 Jun 2016 09:38:52 +0000 (11:38 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 2 Jun 2016 09:38:52 +0000 (11:38 +0200)
Simple Player JavaScript restructuring

1  2 
telemeta/static/telemeta/js/playlist.js

index 31430d0f38fa78d19573339c290d1a6e557b70da,94a545b12661854cc4c4b01990da16b72629abce..d64b70276b7d32ef193d2902f05cecb70c9206bc
@@@ -47,11 -47,12 +47,12 @@@ var playlistUtils = 
      description: '',
      state: 'stop', // state var: to state play or pause glyphicon
      playing: '', // playing var: used to know if an audio is already playing or not
+     audio: new Audio(),
  
 -    addPlaylist: function(name, id){
 +    addPlaylist: function (name, id) {
          this.playlists.push({
 -            'name':name,
 -            'id':id
 +            'name': name,
 +            'id': id
          });
      },