Skip to content
Extraits de code Groupes Projets
Valider 6e7bdf7c rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

don't change photos while commenting

parent 8c1cb0d6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -53,16 +53,18 @@ $(document).ready(function() { ...@@ -53,16 +53,18 @@ $(document).ready(function() {
// right/left hotkeys // right/left hotkeys
$(document).keyup(function(e){ $(document).keyup(function(e){
//left if(!$(e.target).hasClass('comment_box')){
if(e.keyCode == 37) { //left
if( $("#photo_show_left").length > 0 ){ if(e.keyCode == 37) {
document.location = $("#photo_show_left").attr('href'); if( $("#photo_show_left").length > 0 ){
} document.location = $("#photo_show_left").attr('href');
}
//right //right
} else if(e.keyCode == 39) { } else if(e.keyCode == 39) {
if( $("#photo_show_right").length > 0 ){ if( $("#photo_show_right").length > 0 ){
document.location = $("#photo_show_right").attr('href'); document.location = $("#photo_show_right").attr('href');
}
} }
} }
}); });
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter