Changeset c9dcb1 in indico


Ignore:
Timestamp:
06/10/11 14:23:41 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
d7131f
Parents:
d8fdf0
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (06/10/11 13:51:34)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (06/10/11 14:23:41)
Message:

[FIX] close date selector on select

  • close pure dateselectors (without time) when selecting a date
  • fixes #845
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/htdocs/js/calendar/calendar.js

    r6d54d8 rc9dcb1  
    591591                        Calendar.removeClass(cal.currentDateEl, "selected"); 
    592592                        Calendar.addClass(el, "selected"); 
    593                         closing = (cal.currentDateEl == el); 
    594                         if (!closing) { 
    595                                 cal.currentDateEl = el; 
    596                         } 
     593                        // close on select unless we also have a time picker 
     594                        closing = !cal.showsTime || (cal.currentDateEl == el); 
     595                        cal.currentDateEl = el; 
    597596                } 
    598597                cal.date.setDateOnly(el.caldate); 
Note: See TracChangeset for help on using the changeset viewer.