|
@@ -136,6 +136,7 @@
|
|
|
|
|
|
|
|
|
function initMobile(){
|
|
|
+ console.log('initMobile');
|
|
|
|
|
|
|
|
|
|
|
@@ -145,10 +146,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
$('h2, a', '#block-mainnavigation')
|
|
|
.add('h2, a', '#block-mainnavigation-2')
|
|
|
.on('click', onclickHomeMobileMenu);
|
|
|
+
|
|
|
}
|
|
|
function onclickHomeMobileMenu(e){
|
|
|
|
|
@@ -722,6 +723,9 @@
|
|
|
|
|
|
var state = getSysPathState(edlp_origin.sys_path, hash);
|
|
|
|
|
|
+
|
|
|
+ state.historic_index = 0;
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -764,13 +768,19 @@
|
|
|
|
|
|
closeAllModals();
|
|
|
if(hash == "" || hash == 'random'){
|
|
|
+ console.log('first load hash', hash);
|
|
|
|
|
|
|
|
|
state.audio = true;
|
|
|
state.node = node;
|
|
|
-
|
|
|
- _$body.attr('booted', 'booted');
|
|
|
+ if(!_is_mobile){
|
|
|
+
|
|
|
+ _$body.attr('booted', 'booted');
|
|
|
+ }else{
|
|
|
+ ajaxLoadContent(state);
|
|
|
+ }
|
|
|
}else{
|
|
|
+ console.log('first load load content');
|
|
|
|
|
|
ajaxLoadContent(state);
|
|
|
}
|
|
@@ -809,7 +819,11 @@
|
|
|
backToFrontPage(true);
|
|
|
}
|
|
|
else if (e.state.audio) {
|
|
|
- _audioPlayer.openDocument(e.state.node, 'popstate', e.state.historic_index);
|
|
|
+ console.log('popstate audio : e.state', e.state);
|
|
|
+ _audioPlayer.openDocument(e.state.node, 'popstate', e.state.historic_index);
|
|
|
+ if(_is_mobile){
|
|
|
+ ajaxLoadContent(e.state)
|
|
|
+ }
|
|
|
}
|
|
|
else{
|
|
|
if(e.state.entree_tid){
|
|
@@ -1205,7 +1219,7 @@
|
|
|
this.$next.on('click', this.playNext.bind(this));
|
|
|
},
|
|
|
openDocument(node, caller, historic_index){
|
|
|
- console.log('AudioPlayer openDocument', node, caller);
|
|
|
+ console.log('AudioPlayer openDocument', node, caller, historic_index);
|
|
|
if(typeof node == 'undefined'
|
|
|
|| typeof node.nid == 'undefined'
|
|
|
|| typeof node.audio_url == 'undefined'){
|
|
@@ -1275,6 +1289,8 @@
|
|
|
launch(){
|
|
|
this.clearTimeOutToHide();
|
|
|
this.clearIntervalAutoCartelSwitch();
|
|
|
+ console.log('this.historic', this.historic);
|
|
|
+ console.log('this.currentHistoricIndex', this.currentHistoricIndex);
|
|
|
this.setSRC(this.historic[this.currentHistoricIndex].audio_url);
|
|
|
if(!_is_mobile){
|
|
|
this.loadNode(this.historic[this.currentHistoricIndex].nid);
|