WordPress.org

Plugin Directory

Changeset 781981


Ignore:
Timestamp:
10/03/13 15:55:45 (7 months ago)
Author:
joedolson
Message:

dev commit : bug fix, jquery.calendrical.js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • my-calendar/trunk/js/jquery.calendrical.js

    r781551 r781981  
    7474    } 
    7575     
    76     function formatTime(hour, minute, i18n) { 
     76    function formatTime(hour, minute) { 
    7777        var printMinute = minute; 
    7878        if (minute < 10) printMinute = '0' + minute;     
    79         if ( i18n ) {  
    80             var printHour = hour % 12; 
    81             if (printHour == 0) printHour = 12; 
    82             var half = (hour < 12) ? 'am' : 'pm'; 
    83         } else { 
    84             var printHour = hour; 
    85             var half = ''; 
    86         } 
     79        var printHour = hour % 12; 
     80        if (printHour == 0) printHour = 12; 
     81        var half = (hour < 12) ? 'am' : 'pm'; 
    8782        return printHour + ':' + printMinute + half; 
    8883    } 
     
    248243 
    249244                (function() { 
    250                     var timeText = formatTime(hour, minute, i18n); 
     245                    var timeText = formatTime(hour, minute); 
    251246                    var fullText = timeText; 
    252247                    if (startTime != null) { 
Note: See TracChangeset for help on using the changeset viewer.