/[health_html]/js/DateSelector.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /js/DateSelector.js

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

revision 1.2 by ravilov, Wed Sep 19 12:23:57 2001 UTC revision 1.3 by ravilov, Tue Sep 25 15:38:04 2001 UTC
# Line 21  function DateSelector(form, date, before Line 21  function DateSelector(form, date, before
21                  // build month selector                  // build month selector
22                  if (this.sMonth != null) {                  if (this.sMonth != null) {
23                          sel = m || this.sMonth.selectedIndex;                          sel = m || this.sMonth.selectedIndex;
 alert(sel);  
24                          if (sel < 0) sel = this.BaseDate.getMonth();                          if (sel < 0) sel = this.BaseDate.getMonth();
25                          for (i = 0; i < this.sMonth.options.length; i++)                          for (i = 0; i < this.sMonth.options.length; i++)
26                                  this.sMonth.options[i] = null;                                  this.sMonth.options[i] = null;
# Line 53  alert(sel); Line 52  alert(sel);
52                  var n = new Array(31, -1, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);                  var n = new Array(31, -1, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
53                  if (!m) m = (this.sMonth != null && this.sMonth.options.selectedIndex >= 0) ?                  if (!m) m = (this.sMonth != null && this.sMonth.options.selectedIndex >= 0) ?
54                          parseInt(this.sMonth.options[this.sMonth.selectedIndex].value) : this.BaseDate.getMonth();                          parseInt(this.sMonth.options[this.sMonth.selectedIndex].value) : this.BaseDate.getMonth();
 alert(m);  
55                  if (!y) y = (this.sYear != null && this.sYear.options.selectedIndex >= 0) ?                  if (!y) y = (this.sYear != null && this.sYear.options.selectedIndex >= 0) ?
56                          parseInt(this.sYear.options[this.sYear.selectedIndex].text) : this.BaseDate.getYear();                          parseInt(this.sYear.options[this.sYear.selectedIndex].text) : this.BaseDate.getYear();
57                  if (y < 1900) y += 1900;                  if (y < 1900) y += 1900;

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

  ViewVC Help
Powered by ViewVC 1.1.26