small fix

This commit is contained in:
Harry Bomrah 2015-09-14 20:27:20 +08:00
parent beb13207ad
commit a1c35d13a3
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ $(document).ready(function(){
$("body").on("click", ".ticket-response-content img, .ticket-query img", function(){
var el = $(this);
if(el.parent().prop("tagName") != "A"){
if(openImageWindow == null){
if(openImageWindow == null || openImageWindow.closed){
openImageWindow = window.open(el.attr("src"));
}else{
openImageWindow.location = el.attr("src");