method to set message

This commit is contained in:
Ralf Becker 2011-09-08 13:02:56 +00:00
parent 6a544af55b
commit 2ca42ca7a9

View File

@ -447,6 +447,10 @@ class filemanager_ui
}
open_mail(ids);
}
function egw_fileman_setMsg(_msg)
{
\$j(document.getElementById('nm[msg]')).text(_msg);
}
</script>\n";
}
$GLOBALS['egw_info']['flags']['java_script'] .= '<script type="text/javascript">
@ -1282,7 +1286,7 @@ function force_download(_action, _senders)
$msg = self::action($action, $selected);
$response->script('$j(document.getElementById("nm[msg]")).text("'.$msg.'");'); // ->jquery('#nm[msg]','text' does not work!
$response->script('egw_fileman_setMsg("'.$msg.'");');
$response->script('clipboard_files = '.json_encode($clipboard_files).';');
}