WordPress.org

Plugin Directory


Ignore:
Timestamp:
09/07/13 11:50:15 (8 months ago)
Author:
liedekef
Message:

typo fix

Location:
events-made-easy/trunk/extras/plugins/events-made-easy-frontend-submit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • events-made-easy/trunk/extras/plugins/events-made-easy-frontend-submit/emefs.js

    r474820 r768202  
    2121} 
    2222 
    23 function emefs_deploy() { 
     23function emefs_deploy(show24Hours) { 
    2424 
    2525    jQuery("input#location_name").autocomplete(emefs_autocomplete_url, emefs_autocomplete_options); 
     
    3333     
    3434    jQuery("#event_start_date, #event_end_date").datepicker({ dateFormat: 'yy-mm-dd' }); 
    35     jQuery('#event_start_time, #event_end_time').timeEntry({ hourText: 'Hour', minuteText: 'Minute', show24Hours: true, spinnerImage: '' }); 
     35    jQuery('#event_start_time, #event_end_time').timeEntry({ hourText: 'Hour', minuteText: 'Minute', show24Hours: show24Hours, spinnerImage: '' }); 
    3636     
    3737    if(emefs_gmap_hasSelectedLocation){ 
  • events-made-easy/trunk/extras/plugins/events-made-easy-frontend-submit/events-made-easy-frontend-submit.php

    r488455 r768202  
    380380            $filename = 'templates/form.php'; 
    381381        } 
     382      // check if the user wants AM/PM or 24 hour notation 
     383      $time_format = get_option('time_format'); 
     384      $show24Hours = 'true'; 
     385      if (preg_match ( "/a/i", $time_format )) 
     386         $show24Hours = 'false'; 
     387 
    382388        ob_start(); 
    383389        require($filename); 
     
    388394            emefs_gmap_enabled = 1; 
    389395            emefs_gmap_hasSelectedLocation = <?php echo ($emefs_event_data['location_id'])?'1':'0'; ?>; 
    390             emefs_deploy(); 
     396            emefs_deploy(<?php echo $show24Hours; ?>); 
    391397        }); 
    392398        </script> 
Note: See TracChangeset for help on using the changeset viewer.