diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-12-10 23:22:42 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-12-10 23:22:42 +0100 |
commit | 162a2c0fba6f7d7be3aa2372554e4a77a70a3e00 (patch) | |
tree | 733323b13feb40ef6e52d326b691d078b6f3bda4 /apps/files_sharing/js/share.js | |
parent | 45074d5023d408f4f81bc45380ce68b1008f9414 (diff) | |
download | nextcloud-server-162a2c0fba6f7d7be3aa2372554e4a77a70a3e00.tar.gz nextcloud-server-162a2c0fba6f7d7be3aa2372554e4a77a70a3e00.zip |
moving sharing email code to core
Diffstat (limited to 'apps/files_sharing/js/share.js')
-rw-r--r-- | apps/files_sharing/js/share.js | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index a83252867a9..8a546d62163 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -33,28 +33,4 @@ $(document).ready(function() { }); OC.Share.loadIcons('file'); } - - $('#emailPrivateLink').live('submit', function(event) { - event.preventDefault(); - var link = $('#linkText').val(); - var itemType = $('#dropdown').data('item-type'); - var itemSource = $('#dropdown').data('item-source'); - - var file = $('tr').filterAttr('data-id', String(itemSource)).data('file'); - var email = $('#email').val(); - if (email != '') { - $.post(OC.filePath('files_sharing', 'ajax', 'email.php'), { toaddress: email, link: link, type: itemType, file: file }, function(result) { - if (result && result.status == 'success') { - $('#email').css('font-weight', 'bold'); - $('#email').animate({ fontWeight: 'normal' }, 2000, function() { - $(this).val(''); - }).val('Email sent'); - } else { - OC.dialogs.alert(result.data.message, 'Error while sharing'); - } - }); - } - }); - - -});
\ No newline at end of file +}); |