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/_area.php

    r2164 r2167  
    1111  $slots = isset($slots) ? $sf_data->getRaw('slots') : null; 
    1212?> 
    13 <?php use_helper('a', 'jQuery', 'I18N') ?> 
     13 
     14<?php use_helper('a') ?> 
    1415 
    1516<?php slot('a-history-controls') ?> 
     
    172173        }); 
    173174</script> 
    174 <?php a_js_call('apostrophe.areaUpdateMoveButtons(?, ?, ?)', url_for('a/moveSlot'), $pageid, $name) ?> 
    175 <?php a_js_call('apostrophe.menuToggle(?)', array('button' => '#a-add-slot-'.$pageid.'-'.$name, 'classname' => 'a-options-open', 'overlay' => false)) ?> 
     175 
     176<?php if ($infinite): ?> 
     177        <?php a_js_call('apostrophe.areaUpdateMoveButtons(?, ?, ?)', url_for('a/moveSlot'), $pageid, $name) ?> 
     178        <?php a_js_call('apostrophe.menuToggle(?)', array('button' => '#a-add-slot-'.$pageid.'-'.$name, 'classname' => 'a-options-open', 'overlay' => false)) ?>         
    176179<?php endif ?> 
     180 
     181<?php endif ?>