To get around this problem, you need to both define an onDoubleClick action in the .xml file and do some
JS to override the prefs screen:
Define a
JS handler in the .xml file:
Code:
<handlerObject>Com_MyCompany_MyZimlet</handlerObject>
Define both click and doubleclick actions:
Code:
<onClick>
<canvas type="dialog" title="My Zimlet" width="800" height="400" />
<actionUrl method="get" target="https://myhost.com" />
</onClick>
<onDoubleClick>
<canvas type="dialog" title="My Zimlet" width="800" height="400" />
<actionUrl method="get" target="https://myhost.com" />
</onDoubleClick> Setup a stub .
js file for the handler that does nothing on the doubleClick event:
Code:
function Com_MyCompany_MyZimlet() {
}
Com_MyCompany_MyZimlet.prototype = new ZmZimletBase();
Com_MyCompany_MyZimlet.prototype.constructor = Com_MyCompany_MyZimlet;
Com_MyCompany_MyZimlet.prototype.init = function() {
if (ZmAssistant && ZmAssistant.register) ZmAssistant.register(new Com_MyCompany_MyZimlet());
};
// Called by the Zimbra framework when the panel item was double clicked
Com_MyCompany_MyZimlet.prototype.doubleClicked = function() {
}; There is an open bug for this:
Bug 35377 onDoubleClick in Zimlet XML file pops up two windows