From 92bd7b3df81e188b4d5cbcfc42eed78a8088a609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Wed, 22 Apr 2020 09:37:15 +0800 Subject: [PATCH] fix --- js/community/facebox.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/js/community/facebox.js b/js/community/facebox.js index 032165d..73856dd 100644 --- a/js/community/facebox.js +++ b/js/community/facebox.js @@ -229,7 +229,16 @@ function fillFaceboxFromAjax(href, klass) { //$.get(href, function(data) { $.facebox.reveal(data, klass) }) - $.get(href,{xhrFields:{withCredentials: true},crossDomain: true}, function(data) { $.facebox.reveal(data, klass) }) + //$.get(href,{xhrFields:{withCredentials: true},crossDomain: true}, function(data) { $.facebox.reveal(data, klass) }) + $.ajax({ + url:href, + type: 'GET', + xhrFields: { + withCredentials: true + }, + crossDomain: true, + success: function(data) { $.facebox.reveal(data, klass) } + }); } function skipOverlay() {