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

Show
Ignore:
Timestamp:
09/08/10 18:16:25 (21 months ago)
Author:
johnnyoffline
Message:

1. refactored aMenuToggle in aUI.js. Moved it to a.js and made it work with all of the menus (Variants, Add Content, Add Page, Page Settings)
2. refactored some browseHistory JS to be in a.js
3. created globalJavascripts partial to load some general JS at the bottom of layout.php ONCE instead of every time a partial is used.

Files:
1 modified

Legend:

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

    r2152 r2160  
    9494      <?php if ($infinite): ?> 
    9595                                <li class="a-move"> 
    96                                   <a href="#" class="a-btn icon a-arrow-up no-label" title="<?php echo a_('Move Up') ?>"><span class="icon"></span><?php echo a_('Move Up') ?></a> 
     96                                  <a href="#move-up" class="a-btn icon a-arrow-up no-label" title="<?php echo a_('Move Up') ?>" onclick="return false;"><span class="icon"></span><?php echo a_('Move Up') ?></a> 
    9797                                </li> 
    9898                                <li class="a-move"> 
    99                                   <a href="#" class="a-btn icon a-arrow-down no-label" title="<?php echo a_('Move Down') ?>"><span class="icon"></span><?php echo a_('Move Down') ?></a> 
     99                                  <a href="#move-down" class="a-btn icon a-arrow-down no-label" title="<?php echo a_('Move Down') ?>" onclick="return false;"><span class="icon"></span><?php echo a_('Move Down') ?></a> 
    100100                                </li> 
    101101      <?php endif ?> 
     
    150150 
    151151                        <?php if ($infinite): ?> 
    152                                 aMenuToggle('#a-add-slot-<?php echo $pageid.'-'.$name ?>', $('#a-add-slot-<?php echo $pageid.'-'.$name ?>').parent(), 'a-options-open', false); 
    153  
    154152                                var newSlot = $('#a-area-<?php echo "$pageid-$name" ?>').find('.a-new-slot'); 
    155153                                if (newSlot.length) { 
     
    180178</script> 
    181179<?php a_js_call('apostrophe.areaUpdateMoveButtons(?, ?, ?)', url_for('a/moveSlot'), $pageid, $name) ?> 
     180<?php a_js_call('apostrophe.menuToggle(?)', array('button' => '#a-add-slot-'.$pageid.'-'.$name, 'classname' => 'a-options-open', 'overlay' => false)) ?> 
    182181<?php endif ?>