mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +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}
|
||||
|
Loading…
Reference in New Issue
Block a user