diff options
author | cash <cash.costello@gmail.com> | 2012-01-02 21:29:57 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2012-01-02 21:29:57 -0500 |
commit | d24d480f6510b3817f3e85699714ca6ed7ab234c (patch) | |
tree | 89ad9d47a22f09f802f85b63f78c10497ef2fcd4 /views/default/js/photos | |
parent | 83cbd76b2e11b7d832e212ce1ffc77da7a3dd2a6 (diff) | |
download | elgg-d24d480f6510b3817f3e85699714ca6ed7ab234c.tar.gz elgg-d24d480f6510b3817f3e85699714ca6ed7ab234c.tar.bz2 |
added uploading scripts
Diffstat (limited to 'views/default/js/photos')
-rw-r--r-- | views/default/js/photos/uploading.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/views/default/js/photos/uploading.php b/views/default/js/photos/uploading.php new file mode 100644 index 000000000..59448dd46 --- /dev/null +++ b/views/default/js/photos/uploading.php @@ -0,0 +1,28 @@ +<?php +/** + * + */ + +$site_url = elgg_get_site_url(); +$upload_endpoint_url = "{$site_url}action/tidypics/ajax_upload/"; +$upload_complete_url = "{$site_url}action/tidypics/ajax_upload_complete/"; + +?> + +elgg.provide('elgg.tidypics.uploading'); + +elgg.tidypics.uploading.init = function() { + $("#uploadify").uploadify({ + 'uploader' : '<?php echo $site_url; ?>mod/tidypics/vendors/uploadify/uploadify.swf', + 'script' : '<?php echo $upload_endpoint_url; ?>', + 'fileDataName' : 'Image', + 'multi' : true, + 'auto' : false, + 'wmode' : 'transparent', + 'buttonImg' : " ", + 'height' : 20, + 'width' : 130 + }); +} + +elgg.register_hook_handler('init', 'system', elgg.tidypics.uploading.init);
\ No newline at end of file |