make the profile photo image picker work correctly with multiple profiles.

This commit is contained in:
zotlabs
2018-02-24 13:20:59 -08:00
parent e6f9f284bf
commit 3153129e2e
3 changed files with 20 additions and 5 deletions

View File

@@ -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']);
}