To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
04/30/10 17:21:51 (2 years ago)
Author:
johnnyoffline
Message:

added a class name to the multipleSelect input in aControls. Also added an onClose call attribute to the richDate widget so we can have access to a callback from the template when the calendar is closed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/lib/widget/sfWidgetFormJQueryDate.class.php

    r584 r1114  
    7272      $image = sprintf(', buttonImage: "%s", buttonImageOnly: true', $this->getOption('image')); 
    7373    } 
     74    $onClose = ''; 
     75    if (false !== $attributes['onClose']) 
     76    { 
     77      $onClose = sprintf(', onClose: %s', $attributes['onClose']); 
     78    } 
     79 
    7480    return  
    7581      // Outer div with the prefix ID allows efficient jQuery - Firefox can delay for 
     
    138144    showOn:     "both", 
    139145                showAnim:       "fadeIn" 
     146                %s 
    140147    %s 
    141148  }, \$.datepicker.regional["%s"], %s)); 
     
    161168      $id, 
    162169      min($this->getOption('years')), max($this->getOption('years')), 
    163       $prefix, $prefix, $image, $this->getOption('culture'), $this->getOption('config') 
     170      $prefix, $prefix, $onClose, $image, $this->getOption('culture'), $this->getOption('config') 
    164171    ) .  
    165172    // Close wrapper div