diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-12 22:25:02 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-12 22:25:02 +0000 |
commit | bfb0a3e9b289e4036bfeb3e694586387fc4f904e (patch) | |
tree | 6beec05b6424702e036d67622db37ac6f8852a54 /mod/zaudio | |
parent | 1bd696b3d8eb8175cc2b6583716fe3e89110aab0 (diff) | |
download | elgg-bfb0a3e9b289e4036bfeb3e694586387fc4f904e.tar.gz elgg-bfb0a3e9b289e4036bfeb3e694586387fc4f904e.tar.bz2 |
Fixes #3091 adds load functions for js and css
git-svn-id: http://code.elgg.org/elgg/trunk@8675 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/zaudio')
-rw-r--r-- | mod/zaudio/start.php | 3 | ||||
-rw-r--r-- | mod/zaudio/views/default/zaudio/audioplayer.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mod/zaudio/start.php b/mod/zaudio/start.php index c440456b7..b353dffb9 100644 --- a/mod/zaudio/start.php +++ b/mod/zaudio/start.php @@ -12,4 +12,7 @@ elgg_register_event_handler('init', 'system', 'zaudio_init'); function zaudio_init() { elgg_extend_view('css/elgg', 'zaudio/css'); + + $js_url = elgg_get_site_url() . 'mod/zaudio/audioplayer/audio-player.js'; + elgg_register_js('elgg.zaudio', $js_url); } diff --git a/mod/zaudio/views/default/zaudio/audioplayer.php b/mod/zaudio/views/default/zaudio/audioplayer.php index 6898506a6..bae725458 100644 --- a/mod/zaudio/views/default/zaudio/audioplayer.php +++ b/mod/zaudio/views/default/zaudio/audioplayer.php @@ -4,8 +4,7 @@ * @package ElggZAudio */ -$js_url = elgg_get_site_url() . 'mod/zaudio/audioplayer/audio-player.js'; -elgg_register_js('elgg.zaudio', $js_url); +elgg_load_js('elgg.zaudio'); $swf_url = elgg_get_site_url() . 'mod/zaudio/audioplayer/player.swf'; $mp3_url = elgg_get_site_url() . "mod/file/download.php?file_guid={$vars['file_guid']}"; |