diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-10-27 09:03:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-27 09:03:29 +0200 |
commit | 0a2e2f70f60bb97019cd3592ff9aee203bbdd526 (patch) | |
tree | 25f95660046f7116f455bac6050f8ebba0dd85a4 /core/js/shareitemmodel.js | |
parent | 7cae758ef9fc2963fa8889dc448e54c1e2d1e71a (diff) | |
parent | b7046d390fb651e7f83b22a02ca35deefcaab6e9 (diff) | |
download | nextcloud-server-0a2e2f70f60bb97019cd3592ff9aee203bbdd526.tar.gz nextcloud-server-0a2e2f70f60bb97019cd3592ff9aee203bbdd526.zip |
Merge pull request #1929 from nextcloud/share_email_to_OCS
Remove notify recipient function
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r-- | core/js/shareitemmodel.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index e8a0d17a7c2..ecc75ab147c 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -427,35 +427,6 @@ }, /** - * Sends an email notification for the given share - * - * @param {int} shareType share type - * @param {string} shareWith recipient - * @param {bool} state whether to set the notification flag or remove it - */ - sendNotificationForShare: function(shareType, shareWith, state) { - var itemType = this.get('itemType'); - var itemSource = this.get('itemSource'); - - return $.post( - OC.generateUrl('core/ajax/share.php'), - { - action: state ? 'informRecipients' : 'informRecipientsDisabled', - recipient: shareWith, - shareType: shareType, - itemSource: itemSource, - itemType: itemType - }, - function(result) { - if (result.status !== 'success') { - // FIXME: a model should not show dialogs - OC.dialogs.alert(t('core', result.data.message), t('core', 'Warning')); - } - } - ); - }, - - /** * Send the link share information by email * * @param {string} recipientEmail recipient email address |