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


spatel
Posts: 12
Joined: Tue Jun 21, 2016 10:18 am

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

Postby spatel » Thu Jun 29, 2017 5:26 pm

Replace line

Code: Select all

var dlg = appCtxt.getYesNoMsgDialog();

with

Code: Select all

var dlg = new DwtMessageDialog({parent:appCtxt.getShell(), buttons:[DwtDialog.YES_BUTTON], id: "YesNoMsgDialog"});

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 5 guests