DMail Milestone 1.0
Drupal Mail Client
|
00001 // $Id: f3db7250e34292b82c63ad0c0039302534c2782c $ 00007 (function ($) { 00008 00009 Drupal.behaviors.dmailCheck = function(context) { 00010 if (Drupal.settings.dmail.refresh.refreshNext || false) { 00011 $('body:not(.dmail-refreshed)', context).addClass('dmail-refreshed').each(function() { 00012 if (Math.round(new Date().getTime() / 1000.0) >= Drupal.settings.dmail.refresh.refreshNext) { 00013 $.get(Drupal.settings.dmail.refresh.path); 00014 } 00015 }); 00016 } 00017 }; 00018 00019 })(jQuery);