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

Changeset 1114

Show
Ignore:
Timestamp:
04/30/10 17:21:51 (22 months 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

Location:
plugins/apostrophePlugin/trunk
Files:
3 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 
  • plugins/apostrophePlugin/trunk/web/css/a.css

    r1106 r1114  
    17421742} 
    17431743 
    1744 .a-slot.editing-now ul.a-controls 
    1745 { 
     1744.a-slot.editing-now ul.a-controls, 
     1745.a-area.singleton.editing-now ul.a-controls 
     1746{ /* Controls sit on top when editing a singleton slot or a slot in an area */ 
    17461747z-index: 899; 
    17471748} 
    17481749 
    17491750ul.a-controls li 
    1750 { /* All buttons on the site are wrapped in a list. */ 
     1751{ /* All controls buttons are wrapped in a list. */ 
    17511752float: left; 
    17521753display: inline; 
     
    17741775 
    17751776ul.a-controls.a-area-controls 
    1776 { /* Area Controls - Sit ABOVE all slots */ 
     1777{ 
    17771778position: relative; 
    17781779float: left; 
     
    17941795.a-area.singleton.aEvent ul.a-controls.a-area-controls, 
    17951796.a-area.singleton.aEventSingle ul.a-controls.a-area-controls 
    1796 { 
     1797{ /* Singleton Slots that don't allow controls to sit on top of their content */ 
    17971798        position: relative; 
    17981799        margin-bottom: 0 !important; 
    1799 } 
    1800  
    1801 .a-area.browsing-history ul.a-controls.a-slot-controls, 
    1802 ul.a-controls ul.a-controls-item.history 
    1803 { 
    1804 z-index: 899; 
    18051800} 
    18061801 
  • plugins/apostrophePlugin/trunk/web/js/aControls.js

    r1092 r1114  
    106106      } 
    107107      var html = "<div class='a-multiple-select' id='" + id + "'>"; 
    108       html += "<select name='select-" + name + "'>"; 
     108      html += "<select class='a-multiple-select-input' name='select-" + name + "'>"; 
    109109      html += "</select>\n"; 
    110110                        if (addIndex !== undefined) 
     
    240240                                } 
    241241        // Necessary in IE 
    242         $(select).replaceWith("<select name='select-" + name + "'>" + html + "</select>"); 
     242        $(select).replaceWith("<select class='a-multiple-select-input' name='select-" + name + "'>" + html + "</select>"); 
    243243        $("#" + id + " select").change(function() { update(false, false); }); 
    244244                                if (!initial)