Changeset 548b3b in indico


Ignore:
Timestamp:
04/01/11 17:12:47 (2 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
a24477
Parents:
ce1a67a
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (03/31/11 10:54:33)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (04/01/11 17:12:47)
Message:

[FIX] Properly update timetable when rescheduling

  • properly handle array of tt entries instead of a single one
  • fixes #712
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/htdocs/js/indico/Timetable/Base.js

    r66248a r548b3b  
    913913 
    914914        // Check if the result overflows the conference ending time 
     915        var latestTime = null; 
     916        for(var key in result.entry) { 
     917            if(!latestTime || result.entry[key].endDate.time.replaceAll(':','') > latestTime.replaceAll(':','')) { 
     918                latestTime = result.entry[key].endDate.time; 
     919            } 
     920        } 
    915921        if ((result.day == this.eventInfo.endDate.date.replaceAll('-','')) && 
    916             (result.entry.endDate.time.replaceAll(':','') > 
     922            (latestTime.replaceAll(':','') > 
    917923             this.eventInfo.endDate.time.replaceAll(':',''))) { 
    918             this.eventInfo.endDate.time = result.entry.endDate.time; 
     924            this.eventInfo.endDate.time = latestTime; 
    919925        } 
    920926 
Note: See TracChangeset for help on using the changeset viewer.