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() {