To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2079
|
r2160
|
|
| 43 | 43 | }); |
| 44 | 44 | $('<?php echo "#a-$pageid-$name-$permid-variant" ?>').children("ul.a-variant-options").hide(); |
| 45 | | aMenuToggle('#a-<?php echo $pageid ?>-<?php echo $name ?>-<?php echo $permid ?>-variant-options-toggle', $('#a-<?php echo $pageid ?>-<?php echo $name ?>-<?php echo $permid ?>-variant-options-toggle').parent(), 'a-options-open', false); |
| 46 | 45 | }); |
| 47 | 46 | </script> |
| … |
… |
|
| 50 | 49 | </li> |
| 51 | 50 | <?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: