Ignore:
Timestamp:
Nov 23, 2010, 8:55:46 AM (14 years ago)
Author:
LucMorizur
Message:

Cosmetic changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/template/autolog_new.js

    r7847 r7849  
    716716}
    717717
    718 function ec_mark_now() {
    719   maintenant = new Date();
    720   validity_date.setTime(maintenant.getTime() + 120000); // Validity
    721   // [date & time] cannot be less than two minutes
    722   ec_set_validity();
    723 }
    724 
    725718function ec_validity_check_min() {
    726719  var tp = new Date();
     
    741734}
    742735
     736function ec_mark_now() {
     737  maintenant = new Date();
     738  validity_date.setTime(maintenant.getTime() + 120000); // Validity
     739  // [date & time] cannot be less than two minutes
     740  ec_set_validity();
     741}
     742
    743743function ec_validity_set_min() {
    744744  ec_validity_check_min();
     
    754754  ts = Number(validity_date.getTime());
    755755  switch (k) {
    756     case 0  : // minute(s)
     756    case 0: // minute(s)
    757757      validity_date.setTime(ts + (v *    60000));
    758758    break;
    759     case 1  : // hour(s)
     759    case 1: // hour(s)
    760760      validity_date.setTime(ts + (v *  3600000));
    761761    break;
    762     case 2  : // day(s)
     762    case 2: // day(s)
    763763      validity_date.setTime(ts + (v * 86400000));
    764764    break;
    765     case 3  : // month(s)
     765    case 3: // month(s)
    766766      m = Number(de('ec_validity_month_id').selectedIndex + v);
    767767      validity_date.setFullYear(
     
    770770      validity_date.setMonth(m % 12); // % : modulo
    771771    break;
    772     case 4  : // year(s)
     772    case 4: // year(s)
    773773      validity_date.setFullYear(Number(de('ec_validity_year_id').value) + v);
    774774    break;
    775775  }
    776776  ec_set_validity();
     777  ec_validity_check_min();
    777778}
    778779
Note: See TracChangeset for help on using the changeset viewer.