small fix

This commit is contained in:
harrybomrah committed 2015-09-14 20:27:20 +08:00
1 parent beb13207ad
commit a1c35d13a3
1 file changed
+1 -1
+1 -1
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");