Bernd Wurst commited on 2014-02-27 09:00:44
Zeige 2 geänderte Dateien mit 6 Einfügungen und 3 Löschungen.
| ... | ... |
@@ -26,12 +26,15 @@ if (! defined('__JQUERY_INCLUDED')) {
|
| 26 | 26 |
'); |
| 27 | 27 |
} |
| 28 | 28 |
|
| 29 |
-function javascript($file = NULL) {
|
|
| 29 |
+function javascript($file = NULL, $module = NULL) {
|
|
| 30 | 30 |
global $go, $prefix; |
| 31 |
- list($module, $page) = explode('/', $go, 2);
|
|
| 31 |
+ list($mod, $page) = explode('/', $go, 2);
|
|
| 32 | 32 |
if (! $file) {
|
| 33 | 33 |
$file = $page.'.js'; |
| 34 | 34 |
} |
| 35 |
+ if (! $module) {
|
|
| 36 |
+ $module = $mod; |
|
| 37 |
+ } |
|
| 35 | 38 |
if (file_exists('modules/'.$module.'/'.$file)) {
|
| 36 | 39 |
html_header('
|
| 37 | 40 |
<script type="text/javascript" src="'.$prefix.'modules/'.$module.'/'.$file.'"></script> |