[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/xmlsitemap/xsl/ -> xmlsitemap.xsl.js (source)

   1  // $Id: xmlsitemap.xsl.js,v 1.1.2.3 2009/12/23 07:34:55 davereid Exp $
   2  (function($){
   3  
   4  $.tablesorter.addParser({
   5    // set a unique id
   6    id: 'changefreq',
   7    is: function(s) {
   8      return false;
   9    },
  10    format: function(s) {
  11      switch (s) {
  12        case 'always':
  13          return 0;
  14        case 'hourly':
  15          return 1;
  16        case 'daily':
  17          return 2;
  18        case 'weekly':
  19          return 3;
  20        case 'monthly':
  21          return 4;
  22        case 'yearly':
  23          return 5;
  24        default:
  25          return 6;
  26      }
  27    },
  28    type: 'numeric'
  29  });
  30  
  31  $(document).ready(function() {
  32    // Set some location variales.
  33    $('h1').append(': ' + location);
  34    document.title += ': ' + location;
  35  
  36    $('table').tablesorter({
  37      sortList: [[0,0]],
  38      headers: {
  39        2: { sorter: 'changefreq' }
  40      },
  41      widgets: ['zebra']
  42    });
  43  });
  44  
  45  })(jQuery);


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7