Disable button "No" in Request Read Receipt in source code.

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
vsued
Posts: 1
Joined: Thu May 18, 2017 2:43 pm

Disable button "No" in Request Read Receipt in source code.

Postby vsued » Fri May 19, 2017 10:24 am

Hello for all,
How to disable button choice "No" in Request Read Receipt?
Is possible in source code?
I try REMOVE line in function ZmMailApp.SEND_RECEIPT_PROMPT, line 17560 in source code zimbra/js/MailCore_all.js, no work, sample:


Code: Select all

   if (rrPref == ZmMailApp.SEND_RECEIPT_PROMPT) {
      var dlg = appCtxt.getYesNoMsgDialog();
      dlg.registerCallback(DwtDialog.YES_BUTTON, this._sendReadReceipt, this, [msg, dlg]);
      dlg.registerCallback(DwtDialog.NO_BUTTON, this._sendReadReceiptNotified, this, [msg, dlg]);
      dlg.setMessage(ZmMsg.readReceiptSend, DwtMessageDialog.WARNING_STYLE);
      dlg.popup();
   } else if (rrPref == ZmMailApp.SEND_RECEIPT_ALWAYS) {
      msg.readReceiptSent = true;
        this._sendReadReceipt(msg);
   }


Help?

Regards


Return to “Developers”

Who is online

Users browsing this forum: No registered users and 3 guests