/[drupal]/contributions/modules/node_expire/node_expire.js
ViewVC logotype

Diff of /contributions/modules/node_expire/node_expire.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Mon Jan 26 23:56:49 2009 UTC revision 1.2, Thu Jan 29 21:01:33 2009 UTC
# Line 1  Line 1 
1  // $Id: $  // $Id: node_expire.js,v 1.1 2009/01/26 23:56:49 brmassa Exp $
2    
3  Drupal.behaviors.nodeExpire = function(context) {  Drupal.behaviors.nodeExpire = function(context) {
4    $("#edit-expire").datepicker({dateFormat: Drupal.settings.dateFormat});  //   var min = new Date(Drupal.settings.minDate[0], Drupal.settings.minDate[1], Drupal.settings.minDate[3]);
5      var max = Drupal.settings.maxDate;
6      if (max) {
7        max = new Date(max[0], max[1] -1, max[2]);
8      }
9      var min = Drupal.settings.minDate;
10      min = new Date(min[0], min[1] -1, min[2]);
11      $("#edit-expire").datepicker({
12        dateFormat: Drupal.settings.dateFormat,
13        minDate:    min,
14        maxDate:    max
15      });
16  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2