From 41fce072a37d684876badc6f7ce23aa6b9b70b1e Mon Sep 17 00:00:00 2001 From: j Date: Sun, 8 Nov 2020 22:43:47 +0100 Subject: [PATCH] pass referer in more places --- static/js/addFilesDialog.js | 1 + static/js/addItemDialog.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/addFilesDialog.js b/static/js/addFilesDialog.js index 0f75c07e..4bfa0a71 100644 --- a/static/js/addFilesDialog.js +++ b/static/js/addFilesDialog.js @@ -216,6 +216,7 @@ pandora.ui.addFilesDialog = function(options) { ), function(result) { pandora.api.addMediaUrl({ url: item.url, + referer: item.referer, item: id }, callback); }); diff --git a/static/js/addItemDialog.js b/static/js/addItemDialog.js index ab1213f2..238a7d6e 100644 --- a/static/js/addItemDialog.js +++ b/static/js/addItemDialog.js @@ -222,7 +222,8 @@ pandora.ui.addItemDialog = function(options) { } return value; }); - values.url= info.url; + values.url = info.url; + values.referer = info.referer; return Ox.extend(info, values); }