Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function privateMessageStatusChecker() {
- $("#private_content ul li .tick").each(function() {
- var privateMessageId = $(this).attr("id").replace('priv', '');
- var ticker = $("#" + privateMessageId);
- if(ticker.css("color") !== "#4FC3F7") {
- $.ajax({
- url: "system/tcr_tick_checker.php",
- type: "post",
- cache: false,
- dataType: 'json',
- data: {
- id: privateMessageId,
- token: utk
- },
- success: function(resource) {
- if(resource === 1) {
- ticker.html('<i class="fa fa-check-square"></i>');
- ticker.css("color", "#4FC3F7");
- }
- }
- });
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement