mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Deselecting all rows previously selected rows after multi action is submitted.
This commit is contained in:
parent
1135bfcbef
commit
c3308aaf24
1 changed files with 3 additions and 1 deletions
|
@ -127,6 +127,9 @@ export default class extends Controller {
|
|||
|
||||
//Register event handlers
|
||||
promise.then((dt) => {
|
||||
//Deselect all rows before registering the event handler
|
||||
dt.rows().deselect();
|
||||
|
||||
dt.on('select.dt deselect.dt', this._onSelectionChange.bind(this));
|
||||
});
|
||||
|
||||
|
@ -148,7 +151,6 @@ export default class extends Controller {
|
|||
|
||||
_onSelectionChange(e, dt, items ) {
|
||||
//Empty by default but can be overridden by child classes
|
||||
alert("Test");
|
||||
}
|
||||
|
||||
_afterLoaded(dt) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue