Created
June 4, 2020 08:18
-
-
Save reachkamrul/fd26db4a8249eac401a562a15185cd97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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