To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
- Timestamp:
- 09/09/10 14:44:56 (21 months ago)
- Author:
- johnnyoffline
- Message:
-
1. Fixed a bug with the apostrophe.menuToggle calls in _area.php
2. Enhanced apostrophe.menuToggle to fail gracefully if the toggle button is undefined
3. Fixed the cancel button for menu toggles so that they work even in the form was added later with ajax.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2160
|
r2167
|
|
| 6 | 6 | $slot = isset($slot) ? $sf_data->getRaw('slot') : null; |
| 7 | 7 | ?> |
| 8 | | <?php use_helper('I18N') ?> |
| | 8 | |
| | 9 | <?php use_helper('a') ?> |
| | 10 | |
| 9 | 11 | <?php $options = $sf_user->getAttribute("slot-options-$pageid-$name-$permid", null, 'apostrophe') ?> |
| 10 | 12 | <?php $variants = aTools::getVariantsForSlotType($slot->type, $options) ?> |
| … |
… |
|
| 48 | 50 | </ul> |
| 49 | 51 | </li> |
| | 52 | |
| | 53 | <?php if (!$slot->isNew()): ?> |
| | 54 | <?php a_js_call('apostrophe.menuToggle(?)', array('button' => '#a-'.$pageid.'-'.$name.'-'.$permid.'-variant-options-toggle', 'classname' => 'a-options-open', 'overlay' => false)) ?> |
| | 55 | <?php endif ?> |
| | 56 | |
| 50 | 57 | <?php endif ?> |
| 51 | | |
| 52 | | <?php a_js_call('apostrophe.menuToggle(?)', array('button' => '#a-'.$pageid.'-'.$name.'-'.$permid.'-variant-options-toggle', 'classname' => 'a-options-open', 'overlay' => false)) ?> |
Download in other formats: