Refresh opening window after import

This commit is contained in:
Nathan Gray 2012-01-05 18:23:02 +00:00
parent 2e9866bab9
commit 89f46c6a3b

View File

@ -86,6 +86,9 @@
$count = $plugin->import($file, $definition_obj); $count = $plugin->import($file, $definition_obj);
$this->message = lang('%1 records processed', $count); $this->message = lang('%1 records processed', $count);
// Refresh opening window
if(!$content['dry-run']) $GLOBALS['egw']->js->set_onload("window.opener.egw_refresh('{$this->message}','$appname');");
$total_processed = 0; $total_processed = 0;
foreach($plugin->get_results() as $action => $a_count) { foreach($plugin->get_results() as $action => $a_count) {
$this->message .= "\n" . lang($action) . ": $a_count"; $this->message .= "\n" . lang($action) . ": $a_count";