audio player auto hide after 15sec after pausing
This commit is contained in:
+1759
-57
File diff suppressed because it is too large
Load Diff
@@ -217,7 +217,7 @@
|
|||||||
_$body.removeClass('ajax-loading');
|
_$body.removeClass('ajax-loading');
|
||||||
};
|
};
|
||||||
function onAjaxLoaded(data, state){
|
function onAjaxLoaded(data, state){
|
||||||
console.log('ajax loaded : state', state);
|
console.log('ajax loaded', state, data);
|
||||||
// console.log(data);
|
// console.log(data);
|
||||||
// reset all style may been added by other pages (like masonry for productions)
|
// reset all style may been added by other pages (like masonry for productions)
|
||||||
// and replace all content with newly loaded
|
// and replace all content with newly loaded
|
||||||
@@ -891,6 +891,8 @@
|
|||||||
this.currentHistoricIndex = historic_index;
|
this.currentHistoricIndex = historic_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: update language switcher for document url
|
||||||
|
|
||||||
// TODO: stop random player if playing from studio
|
// TODO: stop random player if playing from studio
|
||||||
|
|
||||||
this.emmit('audio-open-document', {caller:caller});
|
this.emmit('audio-open-document', {caller:caller});
|
||||||
@@ -1016,9 +1018,11 @@
|
|||||||
},
|
},
|
||||||
togglePlayPause(e){
|
togglePlayPause(e){
|
||||||
if(this.audio.paused){
|
if(this.audio.paused){
|
||||||
this.audio.play();
|
// this.audio.play();
|
||||||
|
this.play();
|
||||||
}else{
|
}else{
|
||||||
this.audio.pause();
|
// this.audio.pause();
|
||||||
|
this.stop();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
stop(){
|
stop(){
|
||||||
|
|||||||
Reference in New Issue
Block a user