don't change photos while commenting

This commit is contained in:
Raphael Sofaer 2011-03-07 10:32:31 -08:00
parent 8c1cb0d6e8
commit 6e7bdf7cad

View file

@ -53,6 +53,7 @@ $(document).ready(function() {
// right/left hotkeys
$(document).keyup(function(e){
if(!$(e.target).hasClass('comment_box')){
//left
if(e.keyCode == 37) {
if( $("#photo_show_left").length > 0 ){
@ -65,6 +66,7 @@ $(document).ready(function() {
document.location = $("#photo_show_right").attr('href');
}
}
}
});
});