Force load profile pic after edit hack.
This commit is contained in:
parent
60fe9dda5d
commit
551b4443e1
|
@ -104,6 +104,7 @@ if(file_exists($tmp_path)) {
|
||||||
$tmpl->assign('tmp_path', $tmpfname);
|
$tmpl->assign('tmp_path', $tmpfname);
|
||||||
$tmpl->assign('mime', $image->mimeType());
|
$tmpl->assign('mime', $image->mimeType());
|
||||||
$tmpl->assign('id', $id);
|
$tmpl->assign('id', $id);
|
||||||
|
$tmpl->assign('refresh', true);
|
||||||
$tmpl->assign('width', $image->width());
|
$tmpl->assign('width', $image->width());
|
||||||
$tmpl->assign('height', $image->height());
|
$tmpl->assign('height', $image->height());
|
||||||
$page = $tmpl->fetchPage();
|
$page = $tmpl->fetchPage();
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
$id = $_['id'];
|
$id = $_['id'];
|
||||||
$wattr = isset($_['width'])?'width="'.$_['width'].'"':'';
|
$wattr = isset($_['width'])?'width="'.$_['width'].'"':'';
|
||||||
$hattr = isset($_['height'])?'height="'.$_['height'].'"':'';
|
$hattr = isset($_['height'])?'height="'.$_['height'].'"':'';
|
||||||
|
$rand = isset($_['refresh'])?'&'.rand().'='.rand():'';
|
||||||
?>
|
?>
|
||||||
<img class="loading" id="contacts_details_photo" <?php echo $wattr; ?> <?php echo $hattr; ?> src="<?php echo OC_Helper::linkToAbsolute('contacts', 'photo.php'); ?>?id=<?php echo $id; ?>" />
|
<img class="loading" id="contacts_details_photo" <?php echo $wattr; ?> <?php echo $hattr; ?> src="<?php echo OC_Helper::linkToAbsolute('contacts', 'photo.php'); ?>?id=<?php echo $id.$rand; ?>" />
|
||||||
<progress id="contacts_details_photo_progress" style="display:none;" value="0" max="100">0 %</progress>
|
<progress id="contacts_details_photo_progress" style="display:none;" value="0" max="100">0 %</progress>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue