From 57e61250ac6c59fe93c65a95bfd2cb081cd3c34f Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 19 Oct 2016 12:51:01 +0200 Subject: Remove notify recipient option Signed-off-by: Roeland Jago Douma --- core/js/shareitemmodel.js | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'core/js/shareitemmodel.js') 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 @@ -426,35 +426,6 @@ return share.mail_send === 1; }, - /** - * 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 * -- cgit v1.2.3