Move JUSH loading to Adminer customization
This commit is contained in:
parent
17a7865153
commit
ad00e5e965
|
@ -68,6 +68,13 @@ class Adminer {
|
||||||
* @return bool true to link adminer.css if exists
|
* @return bool true to link adminer.css if exists
|
||||||
*/
|
*/
|
||||||
function head() {
|
function head() {
|
||||||
|
global $jush;
|
||||||
|
?>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../externals/jush/jush.css">
|
||||||
|
<script type="text/javascript" src="../externals/jush/modules/jush.js"></script>
|
||||||
|
<script type="text/javascript" src="../externals/jush/modules/jush-textarea.js"></script>
|
||||||
|
<script type="text/javascript" src="../externals/jush/modules/jush-<?php echo $jush; ?>.js"></script>
|
||||||
|
<?php
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,12 +19,8 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
<title><?php echo $title_page; ?></title>
|
<title><?php echo $title_page; ?></title>
|
||||||
<link rel="stylesheet" type="text/css" href="../adminer/static/default.css">
|
<link rel="stylesheet" type="text/css" href="../adminer/static/default.css">
|
||||||
<link rel="stylesheet" type="text/css" href="../externals/jush/jush.css">
|
|
||||||
<script type="text/javascript" src="../adminer/static/functions.js"></script>
|
<script type="text/javascript" src="../adminer/static/functions.js"></script>
|
||||||
<script type="text/javascript" src="static/editing.js"></script>
|
<script type="text/javascript" src="static/editing.js"></script>
|
||||||
<script type="text/javascript" src="../externals/jush/modules/jush.js"></script>
|
|
||||||
<script type="text/javascript" src="../externals/jush/modules/jush-textarea.js"></script>
|
|
||||||
<script type="text/javascript" src="../externals/jush/modules/jush-<?php echo $jush; ?>.js"></script>
|
|
||||||
<?php if ($adminer->head()) { ?>
|
<?php if ($adminer->head()) { ?>
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="../adminer/static/favicon.ico">
|
<link rel="shortcut icon" type="image/x-icon" href="../adminer/static/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="../adminer/static/favicon.ico">
|
<link rel="apple-touch-icon" href="../adminer/static/favicon.ico">
|
||||||
|
|
Loading…
Reference in a new issue