studio ui fix

This commit is contained in:
Bachir Soussi Chiadmi
2018-03-27 16:38:10 +02:00
parent 09f25ef4ef
commit 849ab4f4b0
5 changed files with 52 additions and 31 deletions
@@ -669,24 +669,27 @@
console.log('CompoPlayer initControls()');
this.$composer = $('.composition_ui .composer');
this.$controls = $('.composition_ui .composer .compo-player-controls');
if(!this.$controls.is('.ready') && this.$compo){
this.$previous = $('<div>').addClass('previous')
.on('click', this.prev.bind(this))
.appendTo(this.$controls);
this.$playpause = $('<div>').addClass('play-pause')
.on('click', this.togglePlayPause.bind(this))
.appendTo(this.$controls);
this.$next = $('<div>').addClass('next')
.on('click', this.next.bind(this))
.appendTo(this.$controls);
this.$previous = $('<div>').addClass('previous')
.on('click', this.prev.bind(this))
.appendTo(this.$controls);
this.$playpause = $('<div>').addClass('play-pause')
.on('click', this.togglePlayPause.bind(this))
.appendTo(this.$controls);
this.$next = $('<div>').addClass('next')
.on('click', this.next.bind(this))
.appendTo(this.$controls);
this.$controls.addClass('ready');
this.active = true; // TODO: set active false
this.newCompo();
this.active = true; // TODO: set active false
this.newCompo();
}
},
newCompo(){
console.log('CompoPlayer newCompo()');
this.$compo = $('.composition_ui .composer .composition');
this.initControls();
this.refresh();
},
refresh(){
@@ -669,24 +669,27 @@
console.log('CompoPlayer initControls()');
this.$composer = $('.composition_ui .composer');
this.$controls = $('.composition_ui .composer .compo-player-controls');
if(!this.$controls.is('.ready') && this.$compo){
this.$previous = $('<div>').addClass('previous')
.on('click', this.prev.bind(this))
.appendTo(this.$controls);
this.$playpause = $('<div>').addClass('play-pause')
.on('click', this.togglePlayPause.bind(this))
.appendTo(this.$controls);
this.$next = $('<div>').addClass('next')
.on('click', this.next.bind(this))
.appendTo(this.$controls);
this.$previous = $('<div>').addClass('previous')
.on('click', this.prev.bind(this))
.appendTo(this.$controls);
this.$playpause = $('<div>').addClass('play-pause')
.on('click', this.togglePlayPause.bind(this))
.appendTo(this.$controls);
this.$next = $('<div>').addClass('next')
.on('click', this.next.bind(this))
.appendTo(this.$controls);
this.$controls.addClass('ready');
this.active = true; // TODO: set active false
this.newCompo();
this.active = true; // TODO: set active false
this.newCompo();
}
},
newCompo(){
console.log('CompoPlayer newCompo()');
this.$compo = $('.composition_ui .composer .composition');
this.initControls();
this.refresh();
},
refresh(){