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

    r2149 r2160  
    4848                <ul class="a-ui a-controls"> 
    4949                <li><input type="submit" class="a-btn a-submit" value="<?php echo __('Create Page', null, 'apostrophe') ?>" /></li> 
    50                 <li><a href="#" onclick="return false;" class="a-btn icon a-cancel"><?php echo __("Cancel", null, 'apostrophe') ?></a></li> 
     50                <li><a href="#cancel" onclick="return false;" class="a-btn icon a-cancel a-options-cancel" title="<?php echo __('Cancel', null, 'apostrophe') ?>"><?php echo __("Cancel", null, 'apostrophe') ?></a></li> 
    5151                </ul> 
    5252        </div> 
     
    8282                aInputSelfLabel('#a-create-page-title', <?php echo json_encode(__('Page Title', null, 'apostrophe')) ?>); 
    8383 
    84                 aMenuToggle($('#a-create-page-button'), $('#a-create-page-button').parent(), '', true); 
    85  
    8684                $('#a-create-page-button').click(function(){ 
    8785                        $('#a-create-page-title').focus(); 
     
    8987        }); 
    9088</script> 
     89 
     90<?php a_js_call('apostrophe.menuToggle(?)', array('button' => '#a-create-page-button', 'classname' => '', 'overlay' => true)) ?>