forked from extern/egroupware
Do not show close button on success message and dismiss it on container click handler
This commit is contained in:
parent
16844dced7
commit
18289ecd9d
@ -110,6 +110,13 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
.attr('id','egw_message')
|
.attr('id','egw_message')
|
||||||
.text(_msg)
|
.text(_msg)
|
||||||
.addClass(_type+'_message')
|
.addClass(_type+'_message')
|
||||||
|
.click(function(){
|
||||||
|
if (_type == 'success')
|
||||||
|
{
|
||||||
|
delete(alive_messages[msg_index]);
|
||||||
|
jQuery(msg_div).remove();
|
||||||
|
}
|
||||||
|
})
|
||||||
.prependTo(wrapper);
|
.prependTo(wrapper);
|
||||||
var msg_close = jQuery(_wnd.document.createElement('span'))
|
var msg_close = jQuery(_wnd.document.createElement('span'))
|
||||||
.click(function() {
|
.click(function() {
|
||||||
@ -137,6 +144,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
})
|
})
|
||||||
.addClass('close')
|
.addClass('close')
|
||||||
.appendTo(msg_div);
|
.appendTo(msg_div);
|
||||||
|
if (_type == 'success') msg_close.hide();
|
||||||
// discard checkbox implementation
|
// discard checkbox implementation
|
||||||
if (_discardID && _type === 'info')
|
if (_discardID && _type === 'info')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user