forked from extern/egroupware
2 new message types "help" and "info" and displaying now all message types but "success" until next message or user explicitly closes them
This commit is contained in:
parent
cd91e59911
commit
554789e9ff
@ -43,8 +43,10 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
/**
|
||||
* Display an error or regular message
|
||||
*
|
||||
* Alle messages but type "success" are displayed 'til next message or user clicks on it.
|
||||
*
|
||||
* @param {string} _msg message to show or empty to remove previous message
|
||||
* @param {string} _type 'error', 'warning' or 'success' (default)
|
||||
* @param {string} _type 'help', 'info', 'error', 'warning' or 'success' (default)
|
||||
*/
|
||||
message: function(_msg, _type)
|
||||
{
|
||||
@ -99,7 +101,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
.addClass(_type+'_message')
|
||||
.css('position', 'absolute'));
|
||||
|
||||
if (_type != 'error') // clear message again after some time, if no error
|
||||
if (_type == 'success') // clear message again after some time, if no error
|
||||
{
|
||||
message_timer = _wnd.setTimeout(function() {
|
||||
jQuery('div#egw_message').remove();
|
||||
|
@ -574,6 +574,8 @@ div.prompt, table.prompt {
|
||||
background-image: url(../../default/images/egw_action/header_overlay.png);
|
||||
background-position: center;
|
||||
background-repeat: repeat-x;
|
||||
height: 46px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.dialogHeader, .dialogHeader td {
|
||||
font-size: 120% !important;
|
||||
@ -911,7 +913,7 @@ td.lettersearch {
|
||||
/**
|
||||
* Styles for different egw_message-types
|
||||
*/
|
||||
.success_message, .warning_message, .error_message {
|
||||
.success_message, .warning_message, .error_message, .info_message, .help_message {
|
||||
color: red;
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
@ -930,6 +932,12 @@ td.lettersearch {
|
||||
font-weight: bold;
|
||||
background-image: url(../../default/images/dialog_error.png);
|
||||
}
|
||||
.info_message {
|
||||
background-image: url(../../default/images/dialog_info.png);
|
||||
}
|
||||
.help_message {
|
||||
background-image: url(../../default/images/dialog_help.png);
|
||||
}
|
||||
/**
|
||||
* Message in popup
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user