Skip to content

Instantly share code, notes, and snippets.

@paulodiogo
Created February 14, 2014 11:40
Show Gist options
  • Save paulodiogo/8999705 to your computer and use it in GitHub Desktop.
Save paulodiogo/8999705 to your computer and use it in GitHub Desktop.
Removendo bug que faz a linha ser selecionada ao clicar mesmo tendo um radio button
PrimeFaces.widget.DataTable.prototype.bindSelectionEvents = function() {
this.cfg.rowSelectMode = this.cfg.rowSelectMode || "new";
this.rowSelector = this.jqId
+ " tbody.ui-datatable-data > tr.ui-widget-content.ui-datatable-selectable";
this.bindRadioEvents();
if (this.isCheckboxSelectionEnabled()) {
this.bindCheckboxEvents();
this.updateHeaderCheckbox();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment