js: add a X-Popup header to ajax call for popup content (#83599)
gitea/gadjo/pipeline/head Build queued...
Details
gitea/gadjo/pipeline/head Build queued...
Details
This commit is contained in:
parent
9d1e21c6f6
commit
fef5e30202
|
@ -112,6 +112,7 @@ var gadjo_js = gadjo_js || {};
|
|||
|
||||
$.ajax({
|
||||
url: url,
|
||||
beforeSend: function(xhr) {xhr.setRequestHeader('X-Popup', 'true'); },
|
||||
success: function(html) {
|
||||
var is_json = typeof html != 'string';
|
||||
if (is_json) {
|
||||
|
|
Loading…
Reference in New Issue