diff -r eae52b187e29 -r 205409da0f32 front_idill/src/mosaic/js/zoomInteractions.js --- a/front_idill/src/mosaic/js/zoomInteractions.js Thu Aug 02 11:54:08 2012 +0200 +++ b/front_idill/src/mosaic/js/zoomInteractions.js Wed Aug 08 18:40:40 2012 +0200 @@ -273,7 +273,7 @@ var _this = this; //Si la mosaïque est en pleine écran, pas la peine de zoomer. - if(this.currentMode == "VIDEO" || this.currentMode == "SEARCH" || this.currentMode.indexOf("INCOMING") > -1 || this.helpDisplayed) + if(this.currentMode == "VIDEO" || this.currentMode == "SEARCH" || this.currentMode.indexOf("INCOMING") > -1 || this.helpDisplayed || this.isMosaicFiltering) { return; } @@ -349,6 +349,12 @@ _this.helpIcon(); } + //Si on est sur une tablette, on affiche l'icone de retour. + if(_this.isTablet) + { + _this.homeIcon(); + } + _this.snTop = (zoomedImg.position().top + newZoomTop + _this.MPTop_margin), _this.snLeft = (zoomedImg.position().left + newZoomLeft); _this.snWidth = newSnWidth + 1, _this.snHeight = newSnHeight + 1; @@ -407,6 +413,12 @@ { this.removeHelpIcon(); } + + //Si on est sur une tablette, on enlève l'icone de retour. + if(this.isTablet) + { + this.removeHomeIcon(); + } //Il n'est plus possible de swiper. this.canSwipe = false; @@ -440,7 +452,7 @@ zoomedImg.attr('src', src.replace('snapshots/', 'snapshots-little/')); //On libère le player. - if(_this.player.widgets && _this.player.widgets[0]) + if(_this.player && _this.player.widgets && _this.player.widgets[0]) { _this.timeToGoAt[_this.centerId] = Math.floor(_this.player.popcorn.currentTime()); _this.player.widgets[0].freePlayer(); @@ -507,7 +519,7 @@ left: '0px' }, this.config.unzoomTime, function() { - //Si on est en mode d'interaction souris, on affiche la bordure d'aide. + //Si on est en mode d'interaction souris, on affiche l'icone d'aide. if(_this.config.mouseInteractions) { _this.helpIcon(); @@ -536,6 +548,13 @@ _this.removeNotifications(); _this.mosaicSelectionAndSearch(); } + //Sinon on met la gesture en cours. + else if(_this.currentMode == 'FILTER' && _this.filterSearchedType != '') + { + //On notifie. + _this.removeNotifications(); + _this.filterGesture(_this.filterSearchedType, 'valid'); + } } //On indique qu'on est plus en dezoom.