diff options
author | Sem <sembrestels@riseup.net> | 2012-08-03 23:35:38 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-08-03 23:35:38 +0200 |
commit | a5f23d31518e5b8f00293fde8bc2fbdd481d574b (patch) | |
tree | 44f5c6900aac08447a5e77700fa9c558f1ca9325 /views/default/js | |
parent | 33416279ddc8a483126ce5a04c0c361fa984dfb6 (diff) | |
download | elgg-a5f23d31518e5b8f00293fde8bc2fbdd481d574b.tar.gz elgg-a5f23d31518e5b8f00293fde8bc2fbdd481d574b.tar.bz2 |
Drop files from desktop disabled (wasn't working).
Diffstat (limited to 'views/default/js')
-rw-r--r-- | views/default/js/photos/upload.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/js/photos/upload.php b/views/default/js/photos/upload.php index 05421125d..82e2696bd 100644 --- a/views/default/js/photos/upload.php +++ b/views/default/js/photos/upload.php @@ -3,6 +3,9 @@ * */ +$maxfilesize = (int) elgg_get_plugin_setting('maxfilesize', 'tidypics'); +$maxfilesize *= 1024; + ?> elgg.provide('elgg.tidypics.upload'); @@ -41,12 +44,15 @@ elgg.tidypics.upload.init = function() { // Settings $('#fileupload').fileupload('option', { - maxFileSize: 5000000, + maxFileSize: <?php echo $maxfilesize; ?>, acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i, change: function() { elgg.tidypics.upload.fileinput.hide().appendTo($('#fileupload')); elgg.tidypics.upload.fileinput = $('#fileupload .elgg-input-file'); }, + drop: function () { + return false; + } }); elgg.tidypics.upload.fileinput = $('#fileupload .elgg-input-file'); |