aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2012-01-02 21:29:57 -0500
committercash <cash.costello@gmail.com>2012-01-02 21:29:57 -0500
commitd24d480f6510b3817f3e85699714ca6ed7ab234c (patch)
tree89ad9d47a22f09f802f85b63f78c10497ef2fcd4 /start.php
parent83cbd76b2e11b7d832e212ce1ffc77da7a3dd2a6 (diff)
downloadelgg-d24d480f6510b3817f3e85699714ca6ed7ab234c.tar.gz
elgg-d24d480f6510b3817f3e85699714ca6ed7ab234c.tar.bz2
added uploading scripts
Diffstat (limited to 'start.php')
-rw-r--r--start.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/start.php b/start.php
index cebd033b0..8b336d2ba 100644
--- a/start.php
+++ b/start.php
@@ -37,7 +37,13 @@ function tidypics_init() {
$js = elgg_get_simplecache_url('js', 'photos/tagging');
elgg_register_simplecache_view('js/photos/tagging');
elgg_register_js('tidypics:tagging', $js, 'footer');
+ $js = elgg_get_simplecache_url('js', 'photos/uploading');
+ elgg_register_simplecache_view('js/photos/uploading');
+ elgg_register_js('tidypics:uploading', $js, 'footer');
+
elgg_register_js('tidypics:slideshow', 'mod/tidypics/vendors/PicLensLite/piclens_optimized.js', 'footer');
+ elgg_register_js('swfobject', 'mod/tidypics/vendors/uploadify/swfobject.js', 'footer');
+ elgg_register_js('jquery.uploadify', 'mod/tidypics/vendors/uploadify/jquery.uploadify.v2.1.1.min.js', 'footer');
// Add photos link to owner block/hover menus
elgg_register_plugin_hook_handler('register', 'menu:owner_block', 'tidypics_owner_block_menu');
@@ -189,7 +195,7 @@ function tidypics_page_handler($page) {
case "upload": // upload images to album
set_input('guid', $page[1]);
- set_input('uploader', elgg_extract(2, $page, 'basic'));
+ set_input('uploader', elgg_extract(2, $page, 'ajax'));
require "$base/image/upload.php";
break;