statistics.js 327 B

123456789101112131415161718
  1. /**
  2. * @file
  3. * Statistics functionality.
  4. */
  5. (function ($, Drupal, drupalSettings) {
  6. 'use strict';
  7. $(document).ready(function () {
  8. $.ajax({
  9. type: 'POST',
  10. cache: false,
  11. url: drupalSettings.statistics.url,
  12. data: drupalSettings.statistics.data
  13. });
  14. });
  15. })(jQuery, Drupal, drupalSettings);