Fix replace of all new lines.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
Hugues Peccatte 2014-05-25 16:54:18 +02:00
parent 64926a82d2
commit df0d48ec6c

View File

@ -642,7 +642,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
//Add <br> before carriage return.
new_html = escapeHtml(new_html);
new_html = new_html.replace('\n', '<br>\n');
new_html = new_html.replace(/\n/g, '<br>\n');
//remove decimal places if column type not supported
if (($this_field.attr('data-decimals') === 0) && ( $this_field.attr('data-type').indexOf('time') != -1)) {