Skip to content

Commit

Permalink
SAK-32412 Hardcoded placeholder in messages (sakaiproject#4206)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono authored and jonespm committed Apr 10, 2017
1 parent fb30827 commit 52c7bf9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -868,3 +868,4 @@ cdfm_not_selected_topic=You have to select forum and topic where moving thread
loading_direct_access=Loading message...
error_direct_access=Error loading message

recipient_placeholder=Click here to select recipients
2 changes: 1 addition & 1 deletion msgcntr/messageforums-app/src/webapp/js/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function changeSelect(obj) {

function addTagSelector(obj) {
if (obj) {
$(obj).select2({formatNoMatches:function(){return'';},placeholder: "Click here to select recipients"});
$(obj).select2({formatNoMatches:function(){return'';},placeholder: obj.getAttribute('title')});
$(obj).on('change',function(){resize();});
}
}
Expand Down
4 changes: 2 additions & 2 deletions msgcntr/messageforums-app/src/webapp/jsp/compose.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<h:outputLabel for="list1"><h:outputText value="#{msgs.pvt_star}" styleClass="reqStar"/><h:outputText value="#{msgs.pvt_to}"/></h:outputLabel>
</h:panelGroup>
<h:panelGroup styleClass="shorttext">
<h:selectManyListbox id="list1" value="#{PrivateMessagesTool.selectedComposeToList}" size="5" style="width: 100%;">
<h:selectManyListbox id="list1" value="#{PrivateMessagesTool.selectedComposeToList}" size="5" style="width: 100%;" title="#{msgs.recipient_placeholder}">
<f:selectItems value="#{PrivateMessagesTool.totalComposeToList}"/>
</h:selectManyListbox>
<f:verbatim>
Expand Down Expand Up @@ -153,7 +153,7 @@
</h:outputLabel>
</h:panelGroup>
<h:panelGroup styleClass="shorttext bcc" style="display:none">
<h:selectManyListbox id="list2" value="#{PrivateMessagesTool.selectedComposeBccList}" size="5" style="width: 100%;">
<h:selectManyListbox id="list2" value="#{PrivateMessagesTool.selectedComposeBccList}" size="5" style="width: 100%;" title="#{msgs.recipient_placeholder}">
<f:selectItems value="#{PrivateMessagesTool.totalComposeToBccList}"/>
</h:selectManyListbox>
<f:verbatim>
Expand Down
4 changes: 2 additions & 2 deletions msgcntr/messageforums-app/src/webapp/jsp/pvtMsgForward.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</h:outputLabel>
</h:panelGroup>
<h:panelGroup styleClass="shorttext">
<h:selectManyListbox id="list1" value="#{PrivateMessagesTool.selectedComposeToList}" size="5" style="width: 100%;">
<h:selectManyListbox id="list1" value="#{PrivateMessagesTool.selectedComposeToList}" size="5" style="width: 100%;" title="#{msgs.recipient_placeholder}">
<f:selectItems value="#{PrivateMessagesTool.totalComposeToList}"/>
</h:selectManyListbox>
<f:verbatim>
Expand Down Expand Up @@ -159,7 +159,7 @@
</h:outputLabel>
</h:panelGroup>
<h:panelGroup styleClass="shorttext bcc" style="display:none">
<h:selectManyListbox id="list2" value="#{PrivateMessagesTool.selectedComposeBccList}" size="5" style="width: 100%;">
<h:selectManyListbox id="list2" value="#{PrivateMessagesTool.selectedComposeBccList}" size="5" style="width: 100%;" title="#{msgs.recipient_placeholder}">
<f:selectItems value="#{PrivateMessagesTool.totalComposeToBccList}"/>
</h:selectManyListbox>
<f:verbatim>
Expand Down
4 changes: 2 additions & 2 deletions msgcntr/messageforums-app/src/webapp/jsp/pvtMsgReply.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<h:outputLabel for="list1" ><h:outputText value="#{msgs.pvt_select_addtl_recipients}"/></h:outputLabel>
</h:panelGroup>
<h:panelGroup styleClass="shorttext">
<h:selectManyListbox id="list1" value="#{PrivateMessagesTool.selectedComposeToList}" size="5" style="width: 100%;">
<h:selectManyListbox id="list1" value="#{PrivateMessagesTool.selectedComposeToList}" size="5" style="width: 100%;" title="#{msgs.recipient_placeholder}">
<f:selectItems value="#{PrivateMessagesTool.totalComposeToList}"/>
</h:selectManyListbox>
<f:verbatim>
Expand Down Expand Up @@ -164,7 +164,7 @@
</h:outputLabel>
</h:panelGroup>
<h:panelGroup styleClass="shorttext bcc" style="display:none">
<h:selectManyListbox id="list2" value="#{PrivateMessagesTool.selectedComposeBccList}" size="5" style="width: 100%;">
<h:selectManyListbox id="list2" value="#{PrivateMessagesTool.selectedComposeBccList}" size="5" style="width: 100%;" title="#{msgs.recipient_placeholder}">
<f:selectItems value="#{PrivateMessagesTool.totalComposeToBccList}"/>
</h:selectManyListbox>
<f:verbatim>
Expand Down
4 changes: 2 additions & 2 deletions msgcntr/messageforums-app/src/webapp/jsp/pvtMsgReplyAll.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<h:outputLabel for="list1"><h:outputText value="#{msgs.pvt_select_forward_recipients}"/></h:outputLabel>
</h:panelGroup>
<h:panelGroup styleClass="shorttext">
<h:selectManyListbox id="list1" value="#{PrivateMessagesTool.selectedComposeToList}" size="5" style="width: 100%;">
<h:selectManyListbox id="list1" value="#{PrivateMessagesTool.selectedComposeToList}" size="5" style="width: 100%;" title="#{msgs.recipient_placeholder}">
<f:selectItems value="#{PrivateMessagesTool.totalComposeToList}"/>
</h:selectManyListbox>
<f:verbatim>
Expand Down Expand Up @@ -174,7 +174,7 @@
</h:outputLabel>
</h:panelGroup>
<h:panelGroup styleClass="shorttext bcc" style="display:none">
<h:selectManyListbox id="list2" value="#{PrivateMessagesTool.selectedComposeBccList}" size="5" style="width: 100%;">
<h:selectManyListbox id="list2" value="#{PrivateMessagesTool.selectedComposeBccList}" size="5" style="width: 100%;" title="#{msgs.recipient_placeholder}">
<f:selectItems value="#{PrivateMessagesTool.totalComposeToBccList}"/>
</h:selectManyListbox>
<f:verbatim>
Expand Down

0 comments on commit 52c7bf9

Please sign in to comment.