WordPress.org

Plugin Directory

Changeset 870837


Ignore:
Timestamp:
03/06/14 21:10:33 (18 months ago)
Author:
joedolson
Message:

Nearing the end.

Location:
my-calendar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • my-calendar/trunk/my-calendar-core.php

    r870330 r870837  
    286286    $('#e_begin,' + '#e_end').calendricalDateRange(); 
    287287    $('#mc-accordion').accordion({ collapsible:true, active:false }); 
    288 <?php if ( !isset( $_GET['mode'] ) ) { ?> 
    289288    $('#e_time').timeAutocomplete({ 
    290289        increment: 15, 
     
    300299        value: '' 
    301300    });<?php  
    302     }  
    303301    if ( function_exists( 'jd_doTwitterAPIPost' ) ) { ?> 
    304302    $('#mc_twitter').charCount( { allowed: 140, counterText: '<?php _e('Characters left: ','my-calendar') ?>' } ); 
  • my-calendar/trunk/my-calendar-event-manager.php

    r870330 r870837  
    18261826} 
    18271827 
    1828 function mc_standard_datetime_input( $form, $has_data, $data, $context='admin' ) { 
     1828function mc_standard_datetime_input( $form, $has_data, $data, $instance, $context='admin' ) { 
    18291829    if ( $has_data ) { 
    18301830        $event_begin = esc_attr($data->event_begin);  
    18311831        $event_end = esc_attr($data->event_end); 
    18321832        if ( !empty($_GET['date'] ) ) { 
    1833             $event = mc_get_event( $instance );                  
     1833            $event = mc_get_event( (int) $_GET['date'] ); 
    18341834            $event_begin = date( 'Y-m-d', strtotime( $event->occur_begin ) ); 
    18351835            $event_end = date( 'Y-m-d', strtotime( $event->occur_end ) ); 
     
    18381838        $endtime = ( $data->event_endtime == "00:00:00" && $data->event_time == "00:00:00" )?'':date( "h:i a",strtotime( $data->event_endtime ) );               
    18391839    } else {  
    1840         $event_begin = date("Y-m-d"); 
     1840        $event_begin = date( "Y-m-d" ); 
    18411841        $event_end = $starttime = $endtime = ''; 
    18421842    }  
Note: See TracChangeset for help on using the changeset viewer.