Skip to content
Snippets Groups Projects
Commit a6b9570e authored by Olivier Amrein's avatar Olivier Amrein
Browse files

quickfix : enable disable button was broken

after adding the system column we forgot to offset the fnUpdate to
column 5
parent d5933505
No related branches found
No related tags found
No related merge requests found
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
data = {id : workerId, status: 'disabled'}; data = {id : workerId, status: 'disabled'};
$.post('/workers/edit', data, function() { $.post('/workers/edit', data, function() {
console.log('Worker is now disabled'); console.log('Worker is now disabled');
workersTable.fnUpdate('disabled', rowPosition ,4); workersTable.fnUpdate('disabled', rowPosition ,5);
}); });
} else if (status == 'disabled') { } else if (status == 'disabled') {
data = {id : workerId, status: 'enabled'}; data = {id : workerId, status: 'enabled'};
$.post('/workers/edit', data, function() { $.post('/workers/edit', data, function() {
console.log('Worker is now enabled'); console.log('Worker is now enabled');
workersTable.fnUpdate('enabled', rowPosition ,4); workersTable.fnUpdate('enabled', rowPosition ,5);
}); });
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment