| 137 | | if (!(TB_PrevHTML === "")) { |
| 138 | | function goPrev(){ |
| 139 | | if(jQuery(document).unbind("click",goPrev)){jQuery(document).unbind("click",goPrev);} |
| 140 | | jQuery("#TB_window").remove(); |
| 141 | | jQuery("body").append("<div id='TB_window'></div>"); |
| 142 | | tb_show(TB_PrevCaption, TB_PrevURL, imageGroup); |
| 143 | | return false; |
| 144 | | } |
| 145 | | jQuery("#TB_prev").click(goPrev); |
| | 137 | function goPrev(){ |
| | 138 | if(jQuery(document).unbind("click",goPrev)){jQuery(document).unbind("click",goPrev);} |
| | 139 | jQuery("#TB_window").remove(); |
| | 140 | jQuery("body").append("<div id='TB_window'></div>"); |
| | 141 | tb_show(TB_PrevCaption, TB_PrevURL, imageGroup); |
| | 142 | return false; |
| 162 | | |
| 163 | | } else if ( e.which == 190 ){ // display previous image |
| 164 | | if(!(TB_NextHTML == "")){ |
| 165 | | jQuery(document).unbind('thickbox'); |
| 166 | | goNext(); |
| 167 | | } |
| 168 | | } else if ( e.which == 188 ){ // display next image |
| 169 | | if(!(TB_PrevHTML == "")){ |
| 170 | | jQuery(document).unbind('thickbox'); |
| 171 | | goPrev(); |
| 172 | | } |
| | 159 | } else if ( (e.which == 190) || (e.which == 39) ){ // display next image |
| | 160 | jQuery("#TB_next").trigger( "click" ); |
| | 161 | } else if ( (e.which == 188) || (e.which == 37) ){ // display previous image |
| | 162 | jQuery("#TB_prev").trigger( "click" ); |