mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Replace all instances not just the first one
This commit is contained in:
parent
1846199b77
commit
4e5add0052
@ -100,10 +100,10 @@
|
||||
var content = $(v).html();
|
||||
// Add 2 spans, one is dropped when using .html()
|
||||
var span = $('<span />').append($('<span/>', attrs).append(content));
|
||||
tmpl = tmpl.replace(reg, span.html());
|
||||
tmpl = tmpl.replace(new RegExp(reg, 'g'), span.html());
|
||||
|
||||
reg = '{col' + k + ':raw}';
|
||||
tmpl = tmpl.replace(reg, $(v).text());
|
||||
tmpl = tmpl.replace(new RegExp(reg, 'g'), $(v).text());
|
||||
});
|
||||
|
||||
var $tmpl = $(tmpl);
|
||||
|
Loading…
Reference in New Issue
Block a user