mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
only add slider.js for framework (cd=yes), as it is not needed for iframes and gives javascript error
This commit is contained in:
parent
7334920cfb
commit
da7b9ca9b5
@ -39,4 +39,22 @@ class pixelegg_framework extends jdots_framework
|
||||
{
|
||||
parent::__construct($template); // call the constructor of the extended class
|
||||
}
|
||||
|
||||
/**
|
||||
* Render header
|
||||
*
|
||||
* Overwritten to load our slider.js
|
||||
*
|
||||
* @param array $extra
|
||||
* @return type
|
||||
*/
|
||||
function header(array $extra=array())
|
||||
{
|
||||
// load our slider.js, but only if framework requested
|
||||
if (!self::$header_done && $_GET['cd'] === 'yes')
|
||||
{
|
||||
self::validate_file('/pixelegg/js/slider.js');
|
||||
}
|
||||
return parent::header($extra);
|
||||
}
|
||||
}
|
||||
|
@ -18,8 +18,6 @@
|
||||
{app_css}
|
||||
</style>
|
||||
{java_script}
|
||||
<script src="./pixelegg/js/slider.js" type="text/javascript"></script>
|
||||
|
||||
</head>
|
||||
<body {body_tags}>
|
||||
{include_wz_tooltip}
|
||||
@ -30,15 +28,15 @@
|
||||
<div id="egw_fw_basecontainer">
|
||||
<div id="egw_fw_header">
|
||||
<div id="egw_divLogo"><a href="{logo_url}" target="_blank"><img src="{logo_file}" title="{logo_title}" alt="EGroupware"/></a></div>
|
||||
|
||||
|
||||
<div id="egw_fw_topmenu">
|
||||
|
||||
|
||||
<div id="egw_fw_topmenu_items">{topmenu_items}</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="egw_fw_topmenu_addons">
|
||||
<div id="egw_fw_topmenu_info_items">{topmenu_info_items}</div>
|
||||
<div id="egw_fw_logout" title="{title_logout}" data-logout-url="{link_logout}"></div>
|
||||
@ -49,14 +47,14 @@
|
||||
<div id="egw_fw_splitter"></div>
|
||||
</div>
|
||||
<div id="egw_fw_main">
|
||||
|
||||
|
||||
<div id="egw_fw_tabs"><div id="egw_fw_topmenu_slide" class="slideup"><span id="slidetoggle"></span></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="egw_fw_footer">{powered_by}</div>
|
||||
|
||||
|
||||
|
||||
<!-- END framework -->
|
||||
|
Loading…
Reference in New Issue
Block a user