Merge pull request #6013 from codingCoffee/gridjs
grid_list: fixed event binding on paging
This commit is contained in:
commit
6cf350bcdc
1 changed files with 3 additions and 2 deletions
|
|
@ -49,7 +49,8 @@ export default function make_datatable(container, doctype) {
|
|||
|
||||
tablerow
|
||||
.css({cursor: 'pointer'})
|
||||
.click(() => {
|
||||
.click((e) => {
|
||||
if ($(e.target).is('[type=checkbox]')) return
|
||||
window.location.href = window.location.href + '?name=' + data[i].name;
|
||||
});
|
||||
for (let fieldname of colnames) {
|
||||
|
|
@ -62,7 +63,7 @@ export default function make_datatable(container, doctype) {
|
|||
|
||||
|
||||
const bind_events = () => {
|
||||
parent.find('input[type="checkbox"]:not(.select-all)').on('click', (e) => {
|
||||
parent.on('click', 'input[type="checkbox"]:not(.select-all)', (e) => {
|
||||
set_actions();
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue