Selaa lähdekoodia
Merge pull request #8581 from surajshetty3416/table-check-all
feat: Add a function to check all rows
version-14
mergify[bot]
5 vuotta sitten
committed by
GitHub
vanhempi
commit
fc2fd476df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa
3 lisäystä ja
0 poistoa
-
frappe/public/js/frappe/form/controls/table.js
|
|
@@ -102,5 +102,8 @@ frappe.ui.form.ControlTable = frappe.ui.form.Control.extend({ |
|
|
|
}, |
|
|
|
validate: function() { |
|
|
|
return this.get_value(); |
|
|
|
}, |
|
|
|
check_all_rows() { |
|
|
|
this.$wrapper.find('.grid-row-check')[0].click(); |
|
|
|
} |
|
|
|
}); |