Page 1 of 1

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

Posted: Fri May 19, 2017 10:24 am
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

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

Posted: Thu Jun 29, 2017 5:26 pm
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"});