Skip to content

Instantly share code, notes, and snippets.

@zeroef
Created March 8, 2018 18:47
Show Gist options
  • Select an option

  • Save zeroef/fe2a68371dc4bc08dea9ed12c441de45 to your computer and use it in GitHub Desktop.

Select an option

Save zeroef/fe2a68371dc4bc08dea9ed12c441de45 to your computer and use it in GitHub Desktop.
//Case row click handler
$(document).on('click', '.case-row td:not(input[type=checkbox])', function (e) {
//If row click is on checkbox (case transfer), ignore the click event and flip the checkbox state
if ($(event.target).is('input[type=checkbox]')) { return; }
e.preventDefault();
var xref = $(this).closest('tr').attr('id');
var hiddenControl = document.getElementById("<%=hCaseClicked.ClientID%>");
hiddenControl.value = xref;
origXrefCtrl = xref;
__doPostBack('<%= btnCaseSelected.ClientID %>', '');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment