mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
also replace p tags
This commit is contained in:
parent
854d17b46b
commit
6d6e9d8a43
@ -29,6 +29,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
var error_reg_exp;
|
||||
var on_click_remove_installed = false;
|
||||
var a_href_reg = /<a href="([^"]+)">([^<]+)<\/a>/img;
|
||||
var new_line_reg = /<\/?(p|br)\s*\/?>\n?/ig;
|
||||
|
||||
// Register an 'error' plugin, displaying using the message system
|
||||
this.registerJSONPlugin(function(type, res, req) {
|
||||
@ -107,8 +108,8 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
});
|
||||
on_click_remove_installed = true;
|
||||
}
|
||||
// replace br-tags with newlines
|
||||
_msg = _msg.replace(/<br\s?\/?>\n?/i, "\n");
|
||||
// replace p and br-tags with newlines
|
||||
_msg = _msg.replace(new_line_reg, "\n");
|
||||
|
||||
var msg_div = jQuery(_wnd.document.createElement('div'))
|
||||
.attr('id','egw_message')
|
||||
|
Loading…
Reference in New Issue
Block a user