diff options
Diffstat (limited to 'views/default/js')
-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 |