Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6307 email dataverse support #6462

Merged
merged 7 commits into from Dec 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/webapp/dataverse_header.xhtml
Expand Up @@ -80,7 +80,7 @@
</li>
<ui:fragment rendered="#{empty settingsWrapper.get(':NavbarSupportUrl')}">
<o:form useRequestURI="true" class="navbar-form navbar-left navbar-form-link">
<p:commandLink oncomplete="PF('contactForm').show()" update=":contactDialog" actionListener="#{sendFeedbackDialog.initUserInput}">
<p:commandLink oncomplete="PF('contactForm').show()" update=":contactDialog" actionListener="#{sendFeedbackDialog.initUserInput}" id="headerSupportLink">
<f:setPropertyActionListener target="#{sendFeedbackDialog.messageSubject}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.recipient}" value="#{null}"/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userMessage}" value=""/>
Expand Down
5 changes: 4 additions & 1 deletion src/main/webapp/dataverse_template.xhtml
Expand Up @@ -106,7 +106,10 @@

// Rebind bootstrap UI components
bind_bsui_components();
});
});
function clickSupportLink() {
$("[id$='headerSupportLink']").click();
}
//]]>
</script>
</h:body>
Expand Down
10 changes: 3 additions & 7 deletions src/main/webapp/loginpage.xhtml
Expand Up @@ -113,13 +113,9 @@
<f:param value="#{systemConfig.guidesVersion}"/>
</h:outputFormat>
<h:outputFormat value="#{bundle['login.institution.support.blurbwithLink']}" escape="false">
<o:param>
<p:commandLink value="#{settingsWrapper.supportTeamName}" oncomplete="PF('contactForm').show()" update=":contactDialog" actionListener="#{sendFeedbackDialog.initUserInput}">
<f:setPropertyActionListener target="#{sendFeedbackDialog.messageSubject}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.recipient}" value="#{null}"/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userMessage}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userEmail}" value=""/>
</p:commandLink>
<o:param>
<p:commandLink value="#{settingsWrapper.supportTeamName}" onclick ="clickSupportLink();" >
</p:commandLink>
</o:param>
</h:outputFormat>
</p>
Expand Down
8 changes: 2 additions & 6 deletions src/main/webapp/resources/iqbs/messages.xhtml
Expand Up @@ -25,16 +25,12 @@
<h:outputText value="#{flash['errorMsg']} " escape="false"/>
<h:outputFormat value="#{bundle['error.support.message']}" escape="false">
<o:param>
<p:commandLink value="#{settingsWrapper.supportTeamName}" oncomplete="PF('contactForm').show()" update=":contactDialog" actionListener="#{sendFeedbackDialog.initUserInput}">
<f:setPropertyActionListener target="#{sendFeedbackDialog.messageSubject}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.recipient}" value="#{null}"/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userMessage}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userEmail}" value=""/>
<p:commandLink value="#{settingsWrapper.supportTeamName}" onclick ="clickSupportLink();" >
</p:commandLink>
</o:param>
</h:outputFormat>
</o:form>
</div>
</div>
</ui:fragment>
<ui:fragment rendered="#{not empty flash['infoMsg']}">
<div class="alert alert-info">
Expand Down