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.
Post Reply
vsued
Posts: 1
Joined: Thu May 18, 2017 2:43 pm

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

Post by vsued »

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
saket.patel
Zimbra Employee
Zimbra Employee
Posts: 137
Joined: Mon Apr 11, 2022 8:39 pm

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

Post by saket.patel »

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"});
Post Reply