To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
Changeset 1114
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r584
|
r1114
|
|
| 72 | 72 | $image = sprintf(', buttonImage: "%s", buttonImageOnly: true', $this->getOption('image')); |
| 73 | 73 | } |
| | 74 | $onClose = ''; |
| | 75 | if (false !== $attributes['onClose']) |
| | 76 | { |
| | 77 | $onClose = sprintf(', onClose: %s', $attributes['onClose']); |
| | 78 | } |
| | 79 | |
| 74 | 80 | return |
| 75 | 81 | // Outer div with the prefix ID allows efficient jQuery - Firefox can delay for |
| … |
… |
|
| 138 | 144 | showOn: "both", |
| 139 | 145 | showAnim: "fadeIn" |
| | 146 | %s |
| 140 | 147 | %s |
| 141 | 148 | }, \$.datepicker.regional["%s"], %s)); |
| … |
… |
|
| 161 | 168 | $id, |
| 162 | 169 | 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') |
| 164 | 171 | ) . |
| 165 | 172 | // Close wrapper div |
-
|
r1106
|
r1114
|
|
| 1742 | 1742 | } |
| 1743 | 1743 | |
| 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 */ |
| 1746 | 1747 | z-index: 899; |
| 1747 | 1748 | } |
| 1748 | 1749 | |
| 1749 | 1750 | ul.a-controls li |
| 1750 | | { /* All buttons on the site are wrapped in a list. */ |
| | 1751 | { /* All controls buttons are wrapped in a list. */ |
| 1751 | 1752 | float: left; |
| 1752 | 1753 | display: inline; |
| … |
… |
|
| 1774 | 1775 | |
| 1775 | 1776 | ul.a-controls.a-area-controls |
| 1776 | | { /* Area Controls - Sit ABOVE all slots */ |
| | 1777 | { |
| 1777 | 1778 | position: relative; |
| 1778 | 1779 | float: left; |
| … |
… |
|
| 1794 | 1795 | .a-area.singleton.aEvent ul.a-controls.a-area-controls, |
| 1795 | 1796 | .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 */ |
| 1797 | 1798 | position: relative; |
| 1798 | 1799 | 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; |
| 1805 | 1800 | } |
| 1806 | 1801 | |
-
|
r1092
|
r1114
|
|
| 106 | 106 | } |
| 107 | 107 | 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 + "'>"; |
| 109 | 109 | html += "</select>\n"; |
| 110 | 110 | if (addIndex !== undefined) |
| … |
… |
|
| 240 | 240 | } |
| 241 | 241 | // 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>"); |
| 243 | 243 | $("#" + id + " select").change(function() { update(false, false); }); |
| 244 | 244 | if (!initial) |
Download in other formats: