293 this.selectTLTimeout = setTimeout(function() |
293 this.selectTLTimeout = setTimeout(function() |
294 { |
294 { |
295 //On permet l'interaction après un laps de temps. |
295 //On permet l'interaction après un laps de temps. |
296 _this.canSlideInTL = true; |
296 _this.canSlideInTL = true; |
297 |
297 |
298 $('.notifications').remove(); |
298 _this.removeNotifications(); |
299 _this.timelineTimeline(); |
299 _this.timelineTimeline(); |
300 |
300 |
301 // console.log('(4) TIMELINE SLIDE ' + _this.date()); |
301 // console.log('(4) TIMELINE SLIDE ' + _this.date()); |
302 }, this.config['timeoutSlideTL']); |
302 }, this.config['timeoutSlideTL']); |
303 } |
303 } |
572 this.selectTLTimeout = setTimeout(function() |
572 this.selectTLTimeout = setTimeout(function() |
573 { |
573 { |
574 //On permet l'interaction après un laps de temps. |
574 //On permet l'interaction après un laps de temps. |
575 _this.canSlideInTL = true; |
575 _this.canSlideInTL = true; |
576 |
576 |
577 $('.notifications').remove(); |
577 _this.removeNotifications(); |
578 _this.timelineTimeline(); |
578 _this.timelineTimeline(); |
579 |
579 |
580 // console.log('(4) TIMELINE SLIDE ' + _this.date()); |
580 // console.log('(4) TIMELINE SLIDE ' + _this.date()); |
581 }, this.config['timeoutSlideTL']); |
581 }, this.config['timeoutSlideTL']); |
582 } |
582 } |
816 // _this.currentMode = "FILTR"; |
816 // _this.currentMode = "FILTR"; |
817 _this.isMosaicFiltered = true; |
817 _this.isMosaicFiltered = true; |
818 |
818 |
819 console.log(_this.date() + ' - ENTRE EN MODE FILTRAGE'); |
819 console.log(_this.date() + ' - ENTRE EN MODE FILTRAGE'); |
820 |
820 |
821 $('.notifications').remove(); |
821 _this.removeNotifications(); |
822 _this.filterSearch(); |
822 _this.filterSearch(); |
823 } |
823 } |
824 else if(_this.currentMode == "VIDEO" || _this.currentMode == "TIMELINE") |
824 else if(_this.currentMode == "VIDEO" || _this.currentMode == "TIMELINE") |
825 { |
825 { |
826 _this.currentMode = "SEARCH"; |
826 _this.currentMode = "SEARCH"; |
827 |
827 |
828 console.log(_this.date() + ' - ENTRE EN MODE RECHERCHE'); |
828 console.log(_this.date() + ' - ENTRE EN MODE RECHERCHE'); |
829 // console.log(''); |
829 // console.log(''); |
830 |
830 |
831 $('.notifications').remove(); |
831 _this.removeNotifications(); |
832 _this.searchSearch(); |
832 _this.searchSearch(); |
833 } |
833 } |
834 |
834 |
835 if(!_this.canNotifyHelp) |
835 if(!_this.canNotifyHelp) |
836 { |
836 { |
967 _this.removeFilter(); |
967 _this.removeFilter(); |
968 } |
968 } |
969 |
969 |
970 _this.alreadyOnNotification = false; |
970 _this.alreadyOnNotification = false; |
971 _this.isCurrentlyInASearchByGesture = false; |
971 _this.isCurrentlyInASearchByGesture = false; |
972 _this.currentSearchGesture = ''; |
972 |
|
973 if(_this.currentMode != 'MOSAIC' && _this.currentMode != 'FILTER') |
|
974 { |
|
975 _this.currentSearchGesture[_this.centerId] = ''; |
|
976 } |
|
977 |
973 _this.canNotifyHelp = false; |
978 _this.canNotifyHelp = false; |
974 }, this.config['timeoutRemoveNotificationByGesture']); |
979 }, this.config['timeoutRemoveNotificationByGesture']); |
975 } |
980 } |
976 else |
981 else |
977 { |
982 { |
1017 //Si la notification de recherche existe (dans le player). |
1022 //Si la notification de recherche existe (dans le player). |
1018 if(notification_search.length > 0) |
1023 if(notification_search.length > 0) |
1019 { |
1024 { |
1020 if(x > notification_search.position().left && x < (+notification_search.position().left + notification_search.width()) && y > notification_search.position().top && y < (+notification_search.position().top + notification_search.height())) |
1025 if(x > notification_search.position().left && x < (+notification_search.position().left + notification_search.width()) && y > notification_search.position().top && y < (+notification_search.position().top + notification_search.height())) |
1021 { |
1026 { |
1022 $('.notifications').remove(); |
1027 _this.removeNotifications(); |
1023 if(_this.currentMode == 'SEARCH') |
1028 if(_this.currentMode == 'SEARCH') |
1024 { |
1029 { |
1025 _this.player.widgets[0].removeSearchByGesture(); |
1030 _this.player.widgets[0].removeSearchByGesture(); |
1026 _this.currentMode = 'VIDEO'; |
1031 _this.currentMode = 'VIDEO'; |
|
1032 _this.currentSearchGesture[_this.centerId] = ''; |
1027 } |
1033 } |
1028 else if(_this.currentMode == 'TIMELINE') |
1034 else if(_this.currentMode == 'TIMELINE') |
1029 { |
1035 { |
1030 _this.player.widgets[0].removeSearchByGesture(); |
1036 _this.player.widgets[0].removeSearchByGesture(); |
1031 _this.currentMode = 'TIMELINE'; |
1037 _this.currentMode = 'TIMELINE'; |
|
1038 _this.currentSearchGesture[_this.centerId] = ''; |
1032 } |
1039 } |
1033 else if(_this.currentMode == 'FILTER') |
1040 else if(_this.currentMode == 'FILTER') |
1034 { |
1041 { |
1035 _this.removeFilter(); |
1042 _this.removeFilter(); |
1036 } |
1043 } |