mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-20 21:49:27 +00:00
page reload after uploading documents
This commit is contained in:
@@ -181,16 +181,25 @@ if(isset($_POST['submitbild']))
|
||||
// $akte->insertvon = $user;
|
||||
$akte->uid = '';
|
||||
$akte->dms_id = $dms_id;
|
||||
$akte->new = true;
|
||||
|
||||
|
||||
if(!$akte->save())
|
||||
{
|
||||
echo "<b>Fehler: $akte->errormsg</b>";
|
||||
}
|
||||
else
|
||||
echo "<b>".$p->t('global/erfolgreichgespeichert')."</b>";
|
||||
echo "<script>window.opener.location='bewerbung.php?active=4';</script>";
|
||||
$akte->new = true;
|
||||
|
||||
|
||||
if (!$akte->save()) {
|
||||
echo "<b>Fehler: $akte->errormsg</b>";
|
||||
} else {
|
||||
echo "<b>" . $p->t('global/erfolgreichgespeichert') . "</b>";
|
||||
}
|
||||
|
||||
echo "<script>
|
||||
|
||||
var loc = window.opener.location;
|
||||
|
||||
if(!/active/.test(loc.href)) {
|
||||
window.opener.location = loc + '?active=dokumente';
|
||||
} else {
|
||||
window.opener.location.reload();
|
||||
}
|
||||
</script>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user