diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-07 11:44:26 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-07 11:44:26 +0000 |
| commit | 642cb7e4357030d61f9ff56498aeaa590c7699cf (patch) | |
| tree | def4e09ccdb7d3211eff3a61fc79c9b1577b5ddf /roundcubemail/program/include/rcube_json_output.php | |
| parent | ac1af6d3daf377002fb9875c49dde0a0025a980a (diff) | |
- Added possibility to undo last contact delete operation
git-svn-id: https://svn.roundcube.net/trunk@4916 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_json_output.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_json_output.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_json_output.php b/roundcubemail/program/include/rcube_json_output.php index d1c9de279..efb672888 100644 --- a/roundcubemail/program/include/rcube_json_output.php +++ b/roundcubemail/program/include/rcube_json_output.php @@ -164,14 +164,15 @@ class rcube_json_output * @param string $type Message type [notice|confirm|error] * @param array $vars Key-value pairs to be replaced in localized text * @param boolean $override Override last set message + * @param int $timeout Message displaying time in seconds * @uses self::command() */ - public function show_message($message, $type='notice', $vars=null, $override=true) + public function show_message($message, $type='notice', $vars=null, $override=true, $timeout=0) { if ($override || !$this->message) { $this->message = $message; $msgtext = rcube_label_exists($message) ? rcube_label(array('name' => $message, 'vars' => $vars)) : $message; - $this->command('display_message', $msgtext, $type); + $this->command('display_message', $msgtext, $type, $timeout * 1000); } } |
