Changeset 13ca97 in indico


Ignore:
Timestamp:
10/26/09 16:40:59 (4 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, new-webex, prov-dual-interface, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
b822d4
Parents:
2d0671
git-author:
Pedro Ferreira <jose.pedro.ferreira@…> (10/22/09 17:31:55)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (10/26/09 16:40:59)
Message:

[FIXED] new function replaceAll

  • replace(str1,str2,'g') is not standard!
Location:
indico/htdocs/js/indico
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • indico/htdocs/js/indico/Core/Presentation.js

    r31aa09 r13ca97  
    324324        return bind.toDictionary(new WatchOrderedDict(), source, template); 
    325325} 
     326 
     327String.prototype.replaceAll = Browser.Gecko? 
     328    function(pattern, replace) { 
     329        return this.replace(pattern, replace, 'g'); 
     330    }: 
     331    function(pattern, replace) { 
     332        return this.replace( new RegExp( pattern, "g" ), replace ); 
     333    }; 
  • indico/htdocs/js/indico/Management/Timetable.js

    r2d0671 r13ca97  
    586586                 var rb; 
    587587                 // add top timetable radio button 
    588                  if (!inSession && self.startDate.replaceAll('-', '', 'g') == currentDay) { 
     588                 if (!inSession && self.startDate.replaceAll('-', '') == currentDay) { 
    589589                     // disable the radio button where the item already belongs to 
    590590                     rb = Html.radio( { 
  • indico/htdocs/js/indico/Timetable/Base.js

    r2d0671 r13ca97  
    688688 
    689689        // Check if the result overflows the conference ending time 
    690         if ((result.day == this.eventInfo.endDate.date.replace('-','','g')) && 
    691             (result.entry.endDate.time.replace(':','','g') > 
    692              this.eventInfo.endDate.time.replace(':','','g'))) { 
     690        if ((result.day == this.eventInfo.endDate.date.replaceAll('-','')) && 
     691            (result.entry.endDate.time.replaceAll(':','') > 
     692             this.eventInfo.endDate.time.replaceAll(':',''))) { 
    693693            this.eventInfo.endDate.time = result.endTime; 
    694694        } 
Note: See TracChangeset for help on using the changeset viewer.