Fixed problems with the sizing of the sidemenu, as well as the animation problem (an issue caused by the lack of clear parent container sizing, since the parent was just a table cell). This is actually much cleaner, allowing us to ignore #sidecolumn in the sidemenu.css file, and simplifies jQuery accordion work as well (thus no jitter). Added a mechanism to dump javascript in a consistent place, when generated from elements included by the layout (namely, our sidemenu element). Finally, added a new event called hoverintent, since the mouseover feature works very poorly with the accordion module when animation is in use.
git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@774 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -30,6 +30,17 @@
|
||||
Property Manager: <?php echo $title_for_layout; ?>
|
||||
</title>
|
||||
<?php
|
||||
// Reset the __scripts variable, which has already been dumped to
|
||||
// $scripts_for_layout. Elements/Helpers used in the layout may
|
||||
// also have some scripts to add. They cannot be put into the head
|
||||
// but we can at least put them into a relatively benign place, so
|
||||
// scripts don't have to be dumped inline in possibly awkward spots.
|
||||
// Oh, and yes... I know we're not supposed to be using this variable
|
||||
// directly, and will possibly get burned someday. Oh well, Cake
|
||||
// hasn't left us a lot of choice, besides writing our own scripts
|
||||
// mechanism _additional_ to what Cake has provided :-/
|
||||
$this->__scripts = array();
|
||||
|
||||
echo $html->meta('icon') . "\n";
|
||||
echo $html->css('cake.generic') . "\n";
|
||||
echo $html->css('layout') . "\n";
|
||||
@@ -42,6 +53,7 @@
|
||||
//echo $html->css('themes/dotluv/ui.all') . "\n";
|
||||
echo $html->css('themes/start/ui.all') . "\n";
|
||||
echo $javascript->link('jquery.form') . "\n";
|
||||
echo $javascript->link('pmgr.jquery') . "\n";
|
||||
echo $javascript->link('pmgr') . "\n";
|
||||
echo $scripts_for_layout . "\n";
|
||||
?>
|
||||
@@ -89,5 +101,7 @@
|
||||
<?php echo $cakeDebug; ?>
|
||||
<?php /* pr($this); */ ?>
|
||||
|
||||
<?php echo implode("\n", $this->__scripts) . "\n"; ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user