Skip to content

Instantly share code, notes, and snippets.

@reachkamrul
Created June 4, 2020 08:18
Show Gist options
  • Save reachkamrul/fd26db4a8249eac401a562a15185cd97 to your computer and use it in GitHub Desktop.
Save reachkamrul/fd26db4a8249eac401a562a15185cd97 to your computer and use it in GitHub Desktop.
// Change Month names
var tarns = {
Jan : 'text for January', // change text here
Feb : 'text for February',
Mar : 'text',
Apr : 'text',
May : 'text',
Jun : 'text',
Jul : 'text',
Aug : 'text',
Sep : 'text',
Oct : 'text',
Nov : 'text',
Dec : 'text'
}
function dateFunctions(){
var dates = $table.find('.trans_date');
jQuery.each(dates, function(index, row) {
var $row = jQuery(row);
var text = $row.html();
jQuery.each(tarns, function(tran, value) {
text = text.replace(tran, value);
});
$row.html(text);
});
}
dateFunctions();
$table.on('after.ft.paging', function () {
dateFunctions();
});
$table.on("after.ft.filtering", function () {
dateFunctions();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment