Skip to content

Commit

Permalink
SAK-40622 - Private Messages; Check All doesn't select any message (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Pellicer authored and bjones86 committed Sep 24, 2018
1 parent dba0497 commit 42fea1c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
19 changes: 19 additions & 0 deletions msgcntr/messageforums-app/src/webapp/js/forum.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,25 @@ $(document).ready(function(){

});

$(document).ready(function(){
$("#prefs_pvt_form\\:pvtmsgs\\:checkAll, #prefs_pvt_form\\:threaded_pvtmsgs\\:checkAll").click(function () {
$('input:checkbox').not(this).prop('checked', this.checked);
if(this.checked){
toggleBulkOperations(true, 'prefs_pvt_form');
}else{
toggleBulkOperations(false, 'prefs_pvt_form');
}
});
$("#prefs_form_search\\:pvtmsgs\\:checkAll, #prefs_form_search\\:threaded_pvtmsgs\\:checkAll").click(function () {
$('input:checkbox').not(this).prop('checked', this.checked);
if(this.checked){
toggleBulkOperations(true, 'prefs_form_search');
}else{
toggleBulkOperations(false, 'prefs_form_search');
}
});
});

// rubrics-specific code
var rubricChanged = false;
rubricsEventHandlers = function () {
Expand Down
11 changes: 6 additions & 5 deletions msgcntr/messageforums-app/src/webapp/jsp/privateMsg/pvtMsg.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@

<h:column>
<f:facet name="header">
<h:commandLink action="#{PrivateMessagesTool.processCheckAll}" value="#{msgs.cdfm_checkall}"
title="#{msgs.cdfm_checkall}" />
<h:selectBooleanCheckbox id="checkAll" title="#{msgs.cdfm_checkall}">
<h:outputText value="#{msgs.cdfm_checkall} "/>
</h:selectBooleanCheckbox>
</f:facet>
<h:selectBooleanCheckbox value="#{rcvdItems.isSelected}" onclick="updateCount(this.checked); toggleBulkOperations(anyChecked(), 'prefs_pvt_form');" />
</h:column>
Expand Down Expand Up @@ -191,9 +192,9 @@
columnClasses="attach,attach,attack,specialLink,bogus,bogus,bogus">
<h:column>
<f:facet name="header">
<h:commandLink action="#{PrivateMessagesTool.processCheckAll}" value="#{msgs.cdfm_checkall}"
title="#{msgs.cdfm_checkall}"/>
<%--<h:commandButton alt="SelectAll" image="/messageforums-tool/images/checkbox.gif" action="#{PrivateMessagesTool.processSelectAllJobs}"/>--%>
<h:selectBooleanCheckbox id="checkAll" title="#{msgs.cdfm_checkall}">
<h:outputText value="#{msgs.cdfm_checkall} "/>
</h:selectBooleanCheckbox>
</f:facet>
<h:selectBooleanCheckbox value="#{rcvdItems.isSelected}" onclick="updateCount(this.checked); toggleBulkOperations(anyChecked(), 'prefs_pvt_form');" />
</h:column>
Expand Down
11 changes: 6 additions & 5 deletions msgcntr/messageforums-app/src/webapp/jsp/privateMsg/pvtMsgEx.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
rendered="#{PrivateMessagesTool.selectView != 'threaded'}" columnClasses="attach,attach,specialLink,bogus,bogus,bogus">
<h:column>
<f:facet name="header">
<h:commandLink action="#{PrivateMessagesTool.processCheckAll}" value="#{msgs.cdfm_checkall}"
title="#{msgs.cdfm_checkall}" />
<%--<h:commandButton alt="SelectAll" image="/messageforums-tool/images/checkbox.gif" action="#{PrivateMessagesTool.processSelectAllJobs}"/>--%>
<h:selectBooleanCheckbox id="checkAll" title="#{msgs.cdfm_checkall}">
<h:outputText value="#{msgs.cdfm_checkall} "/>
</h:selectBooleanCheckbox>
</f:facet>
<h:selectBooleanCheckbox value="#{rcvdItems.isSelected}" onclick="updateCount(this.checked); toggleBulkOperations(anyChecked(), 'prefs_form_search');" />
</h:column>
Expand Down Expand Up @@ -90,8 +90,9 @@
columnClasses="attach,attach,specialLink,bogus,bogus,bogus">
<h:column>
<f:facet name="header">
<h:commandLink action="#{PrivateMessagesTool.processCheckAll}" value="#{msgs.cdfm_checkall}"
title="#{msgs.cdfm_checkall}" />
<h:selectBooleanCheckbox id="checkAll" title="#{msgs.cdfm_checkall}">
<h:outputText value="#{msgs.cdfm_checkall} "/>
</h:selectBooleanCheckbox>
</f:facet>
<h:selectBooleanCheckbox value="#{rcvdItems.isSelected}" onclick="updateCount(this.checked); toggleBulkOperations(anyChecked(), 'prefs_form_search');" />
</h:column>
Expand Down

0 comments on commit 42fea1c

Please sign in to comment.