Fix modify mail subject action's title

This commit is contained in:
Hadi Nategh 2019-08-26 17:01:37 +02:00
parent c59807d861
commit 74d6322414
2 changed files with 8 additions and 2 deletions

View File

@ -99,6 +99,12 @@ var et2_description = (function(){ "use strict"; return expose(et2_baseWidget.ex
"type": "js", "type": "js",
"default": et2_no_init, "default": et2_no_init,
"description": "JS code which is executed when clicking on action button. This action is explicitly for attached nodes, like in nm." "description": "JS code which is executed when clicking on action button. This action is explicitly for attached nodes, like in nm."
},
hover_action_title: {
"name": "hover action title",
"type": "string",
"default": "Edit",
"description": "Text to show as tooltip of defined action"
} }
}, },
@ -383,7 +389,7 @@ var et2_description = (function(){ "use strict"; return expose(et2_baseWidget.ex
tooltipClass: "et2_email_popup", tooltipClass: "et2_email_popup",
content: function() content: function()
{ {
return jQuery('<a href="#" class= "et2_url_email_contactPlus" title="'+egw.lang('Edit')+'"><img src="' return jQuery('<a href="#" class= "et2_url_email_contactPlus" title="'+egw.lang(widget.options.hover_action_title)+'"><img src="'
+egw.image("edit") +'"/></a>') +egw.image("edit") +'"/></a>')
.on('click', function() { .on('click', function() {
widget.options.hover_action.call(self, self.widget, content); widget.options.hover_action.call(self, self.widget, content);

View File

@ -19,7 +19,7 @@
</hbox> </hbox>
<hbox id="mailPreviewHeadersSubject" class="mailPreviewHeaders"> <hbox id="mailPreviewHeadersSubject" class="mailPreviewHeaders">
<description value="Subject"/> <description value="Subject"/>
<description align="left" id="previewSubject" readonly="true" hover_action="app.mail.modifyMessageSubjectDialog"/> <description align="left" id="previewSubject" readonly="true" hover_action="app.mail.modifyMessageSubjectDialog" hover_action_title="Modify subject of this message"/>
</hbox> </hbox>
<hbox id="mailPreviewHeadersDate" class="mailPreviewHeaders"> <hbox id="mailPreviewHeadersDate" class="mailPreviewHeaders">
<description value="Date"/> <description value="Date"/>