js: add a X-Popup header to ajax call for popup content (#83599)
gitea/gadjo/pipeline/head Build queued... Details

This commit is contained in:
Frédéric Péters 2023-11-16 15:55:45 +01:00
parent 9d1e21c6f6
commit fef5e30202
1 changed files with 1 additions and 0 deletions

View File

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