aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/photos/uploading.php
blob: 59448dd464d9ca2def8d2cd21bb1c7246ef5cd9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);