fix studio
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
$('body')
|
||||
.on('on-studio-chutier-updated', initAjaxLinks)
|
||||
.on('studio-initialized', function(e){
|
||||
_compoPlayer.initControls();
|
||||
_compoPlayer.newCompo();
|
||||
})
|
||||
.on('studio-not-active', function(e){
|
||||
_compoPlayer.deactivate();
|
||||
@@ -665,9 +665,15 @@
|
||||
|
||||
// this.newCompo();
|
||||
},
|
||||
newCompo(){
|
||||
console.log('CompoPlayer newCompo()');
|
||||
// this.$compo = $('.composition_ui .composer .composition');
|
||||
this.initControls();
|
||||
},
|
||||
initControls(){
|
||||
console.log('CompoPlayer initControls()');
|
||||
this.$composer = $('.composition_ui .composer');
|
||||
this.$compo = $('.composition_ui .composer .composition');
|
||||
this.$controls = $('.composition_ui .composer .compo-player-controls');
|
||||
if(!this.$controls.is('.ready') && this.$compo){
|
||||
this.$previous = $('<div>').addClass('previous')
|
||||
@@ -682,21 +688,14 @@
|
||||
|
||||
this.$controls.addClass('ready');
|
||||
|
||||
this.refresh();
|
||||
|
||||
this.active = true; // TODO: set active false
|
||||
this.newCompo();
|
||||
// this.newCompo();
|
||||
}
|
||||
},
|
||||
newCompo(){
|
||||
console.log('CompoPlayer newCompo()');
|
||||
this.$compo = $('.composition_ui .composer .composition');
|
||||
this.initControls();
|
||||
this.refresh();
|
||||
},
|
||||
refresh(){
|
||||
// console.log('CompoPlayer refresh(), this', this);
|
||||
// this.playing = false;
|
||||
// this.paused = false;
|
||||
// this.resetIndex();
|
||||
this.stop();
|
||||
|
||||
// load new playlist
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
$('body')
|
||||
.on('on-studio-chutier-updated', initAjaxLinks)
|
||||
.on('studio-initialized', function(e){
|
||||
_compoPlayer.initControls();
|
||||
_compoPlayer.newCompo();
|
||||
})
|
||||
.on('studio-not-active', function(e){
|
||||
_compoPlayer.deactivate();
|
||||
@@ -665,9 +665,15 @@
|
||||
|
||||
// this.newCompo();
|
||||
},
|
||||
newCompo(){
|
||||
console.log('CompoPlayer newCompo()');
|
||||
// this.$compo = $('.composition_ui .composer .composition');
|
||||
this.initControls();
|
||||
},
|
||||
initControls(){
|
||||
console.log('CompoPlayer initControls()');
|
||||
this.$composer = $('.composition_ui .composer');
|
||||
this.$compo = $('.composition_ui .composer .composition');
|
||||
this.$controls = $('.composition_ui .composer .compo-player-controls');
|
||||
if(!this.$controls.is('.ready') && this.$compo){
|
||||
this.$previous = $('<div>').addClass('previous')
|
||||
@@ -682,21 +688,14 @@
|
||||
|
||||
this.$controls.addClass('ready');
|
||||
|
||||
this.refresh();
|
||||
|
||||
this.active = true; // TODO: set active false
|
||||
this.newCompo();
|
||||
// this.newCompo();
|
||||
}
|
||||
},
|
||||
newCompo(){
|
||||
console.log('CompoPlayer newCompo()');
|
||||
this.$compo = $('.composition_ui .composer .composition');
|
||||
this.initControls();
|
||||
this.refresh();
|
||||
},
|
||||
refresh(){
|
||||
// console.log('CompoPlayer refresh(), this', this);
|
||||
// this.playing = false;
|
||||
// this.paused = false;
|
||||
// this.resetIndex();
|
||||
this.stop();
|
||||
|
||||
// load new playlist
|
||||
|
||||
Reference in New Issue
Block a user