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

Show
Ignore:
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:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/modules/a/templates/_variant.php

    r2160 r2167  
    66  $slot = isset($slot) ? $sf_data->getRaw('slot') : null; 
    77?> 
    8 <?php use_helper('I18N') ?> 
     8 
     9<?php use_helper('a') ?> 
     10 
    911<?php $options = $sf_user->getAttribute("slot-options-$pageid-$name-$permid", null, 'apostrophe') ?> 
    1012<?php $variants = aTools::getVariantsForSlotType($slot->type, $options) ?> 
     
    4850    </ul> 
    4951  </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 
    5057<?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)) ?>