aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-24 13:20:59 -0800
committerzotlabs <mike@macgirvin.com>2018-02-24 13:20:59 -0800
commit3153129e2eb968a189a8a7050d06892cbc13c651 (patch)
tree0c5b10085e686cb104616a48577a25ecaee0d579 /view/js
parente6f9f284bf04f0dc0471fa08d7dac118effe4ccb (diff)
downloadvolse-hubzilla-3153129e2eb968a189a8a7050d06892cbc13c651.tar.gz
volse-hubzilla-3153129e2eb968a189a8a7050d06892cbc13c651.tar.bz2
volse-hubzilla-3153129e2eb968a189a8a7050d06892cbc13c651.zip
make the profile photo image picker work correctly with multiple profiles.
Diffstat (limited to 'view/js')
-rw-r--r--view/js/mod_profile_photo.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/view/js/mod_profile_photo.js b/view/js/mod_profile_photo.js
index 76b120684..832da764b 100644
--- a/view/js/mod_profile_photo.js
+++ b/view/js/mod_profile_photo.js
@@ -37,7 +37,9 @@
$.post("embedphotos/photolink", {href: href},
function(ddata) {
if (ddata['status']) {
- window.location.href = 'profile_photo/use/' + ddata['resource_id'];
+ var pf = $('#profile-photo-profiles').val();
+ var prof = ((typeof pf !== 'undefined') ? '?f=&pf=' + pf : '');
+ window.location.href = 'profile_photo/use/' + ddata['resource_id'] + prof;
} else {
window.console.log("{{$modalerrorlink}}" + ':' + ddata['errormsg']);
}