front_idill/src/mosaic/js/neighbours.js
changeset 45 0e29ae4568a0
parent 44 8393d3473b98
child 47 4e1ee94d70b1
equal deleted inserted replaced
44:8393d3473b98 45:0e29ae4568a0
   236         {
   236         {
   237             //On le fait apparaƮtre.
   237             //On le fait apparaƮtre.
   238             opacity: '1'
   238             opacity: '1'
   239         }, _this.config['timeNeighbourGlowing'], function()
   239         }, _this.config['timeNeighbourGlowing'], function()
   240 		{
   240 		{
   241 			console.log('SWAG !!!', _this.currentMode, _this.currentSearchGesture);
   241 			if(_this.mouseInteractions)
   242 			if(_this.currentMode == 'VIDEO')
   242 			{
   243 			{
   243 				if(_this.currentMode == 'VIDEO')
   244 				$('.notifications').remove();
   244 				{
   245 				_this.videoMoveAndUnzoom(snapshotId);
   245 					$('.notifications').remove();
   246 			}
   246 					_this.videoMove(snapshotId);
   247 			else if(_this.currentMode == 'SEARCH' && !_this.currentSearchGesture)
   247 				}
   248 			{
   248 				else if(_this.currentMode == 'SEARCH' && !_this.currentSearchGesture)
   249 				$('.notifications').remove();
   249 				{
   250 				_this.searchSearchAndMoveAndUnzoom(snapshotId);
   250 					$('.notifications').remove();
   251 			}
   251 					_this.searchSearchAndMove(snapshotId);
   252 			else if(_this.currentMode == 'SEARCH' && _this.currentSearchGesture)
   252 				}
   253 			{
   253 				else if(_this.currentMode == 'SEARCH' && _this.currentSearchGesture)
   254 				$('.notifications').remove();
   254 				{
   255 				console.log('swag');
   255 					$('.notifications').remove();
   256 				_this.searchGestureAndMoveAndUnzoom(_this.currentSearchGesture, 'valid', snapshotId);
   256 					_this.searchGestureAndMove(_this.currentSearchGesture, 'valid', snapshotId);
       
   257 				}
       
   258 				
       
   259 				_this.canMoveToNeighbour = true;
       
   260 			}
       
   261 			else
       
   262 			{
       
   263 				if(_this.currentMode == 'VIDEO')
       
   264 				{
       
   265 					$('.notifications').remove();
       
   266 					_this.videoMoveAndUnzoom(snapshotId);
       
   267 				}
       
   268 				else if(_this.currentMode == 'SEARCH' && !_this.currentSearchGesture)
       
   269 				{
       
   270 					$('.notifications').remove();
       
   271 					_this.searchSearchAndMoveAndUnzoom(snapshotId);
       
   272 				}
       
   273 				else if(_this.currentMode == 'SEARCH' && _this.currentSearchGesture)
       
   274 				{
       
   275 					$('.notifications').remove();
       
   276 					_this.searchGestureAndMoveAndUnzoom(_this.currentSearchGesture, 'valid', snapshotId);
       
   277 				}
   257 			}
   278 			}
   258 		});
   279 		});
   259 		
   280 		
   260 		var side = $.inArray(parseInt(snapshotId), this.neighboursIds);
   281 		var side = $.inArray(parseInt(snapshotId), this.neighboursIds);
   261 		
   282